modules/graphics/src/test/java/javafx/css/TypeTest.java
Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization
@@ -21,16 +21,14 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-package com.sun.javafx.css;
+package javafx.css;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
-import javafx.css.CssMetaData;
-import javafx.css.ParsedValue;
import org.junit.Test;
public class TypeTest {
@@ -48,11 +46,12 @@
}
// ParsedValue value = TypeTest.getValueFor(stylesheet, "-fx-cursor")
public static ParsedValue getValueFor(Stylesheet stylesheet, String property ) {
for (Rule rule : stylesheet.getRules()) {
- for (Declaration decl : rule.getUnobservedDeclarationList()) {
+ // for (Declaration decl : rule.getUnobservedDeclarationList()) {
+ for (Declaration decl : rule.getDeclarations()) {
if (property.equals(decl.getProperty())) {
return decl.getParsedValue();
}
}
}