When trying to run the tests using -PTEST_SDK_PATH=<path> and -PTEST_ONLY=true, the newly added / updated MediaQuery tests fail to compile:
modules/javafx.graphics/src/test/java/test/javafx/css/CssParser_mediaQuery_Test.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQuerySerializerTest.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQueryCacheTest.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/javafx/css/StylesheetTest.java:816: error: cannot find symbol
FunctionExpression.of("prefers-color-scheme", "dark", _ -> null, ColorScheme.DARK),
^
symbol: method of(String,String,()->null,ColorScheme)
location: class FunctionExpression
...
These tests compile and execute fine with normal command `gradle :graphics:test`, which is why our GHA tests and other sanity tests passed.
See JDK-8367327 for the reason this wasn't seen in normal test runs.
modules/javafx.graphics/src/test/java/test/javafx/css/CssParser_mediaQuery_Test.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQuerySerializerTest.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQueryCacheTest.java:29: error: cannot find symbol
import com.sun.javafx.css.media.SizeQueryType;
^
symbol: class SizeQueryType
location: package com.sun.javafx.css.media
...
modules/javafx.graphics/src/test/java/test/javafx/css/StylesheetTest.java:816: error: cannot find symbol
FunctionExpression.of("prefers-color-scheme", "dark", _ -> null, ColorScheme.DARK),
^
symbol: method of(String,String,()->null,ColorScheme)
location: class FunctionExpression
...
These tests compile and execute fine with normal command `gradle :graphics:test`, which is why our GHA tests and other sanity tests passed.
See JDK-8367327 for the reason this wasn't seen in normal test runs.
- relates to
-
JDK-8358450 Viewport characteristics media features
-
- Resolved
-