On Mon, 16 Mar 2026 17:59:23 GMT, Michael Strauß <[email protected]> wrote:

>> I was mostly wondering - so this field is needed also for Production code, 
>> but made public for Unit Testing?
>
> In production, it just throws an exception when the requested media feature 
> was not found. For testing, this is the extension point where I can return a 
> test-only media query; in our case, a media query that is always true or 
> always false.

that is what I thought. Asking because I'm always a bit careful with that, 
especially since in the past there were some flag only used for testing in prod 
code. I think this is probably fine (we could als just throw an exception 
directly), but I see that this is used in tests.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2031#discussion_r2942142750

Reply via email to