< prev index next >
modules/javafx.graphics/src/test/java/test/javafx/css/FontTypeTest.java
Print this page
rev 10372 : 8176404: Remove public test-only convenience method from CssParser
Reviewed-by:
@@ -24,11 +24,11 @@
*/
package test.javafx.css;
import com.sun.javafx.css.ParsedValueImpl;
-import javafx.css.CssParser;
+import javafx.css.CssParserShim;
import javafx.css.ParsedValue;
import javafx.css.Size;
import javafx.css.SizeUnits;
import javafx.css.converter.FontConverter;
import javafx.css.converter.SizeConverter;
@@ -116,38 +116,38 @@
}
@Test public void test_RT_21960_Bold_Italic() {
- ParsedValue pv = new CssParser().parseExpr("-fx-font", "italic bold 24 Amble");
+ ParsedValue pv = new CssParserShim().parseExpr("-fx-font", "italic bold 24 Amble");
Font f = (Font)pv.convert(null);
assertEquals("Bold Italic", f.getStyle());
assertEquals("Amble", f.getFamily());
assertEquals(24, f.getSize(),0);
}
@Test public void test_RT_21960_Bold() {
- ParsedValue pv = new CssParser().parseExpr("-fx-font", "bold 24 Amble");
+ ParsedValue pv = new CssParserShim().parseExpr("-fx-font", "bold 24 Amble");
Font f = (Font)pv.convert(null);
assertEquals("Bold", f.getStyle());
assertEquals("Amble", f.getFamily());
assertEquals(24, f.getSize(),0);
}
@Test public void test_RT_21960_Italic() {
- ParsedValue pv = new CssParser().parseExpr("-fx-font", "italic 24 Amble");
+ ParsedValue pv = new CssParserShim().parseExpr("-fx-font", "italic 24 Amble");
Font f = (Font)pv.convert(null);
assertEquals("Italic", f.getStyle());
assertEquals("Amble", f.getFamily());
assertEquals(24, f.getSize(),0);
}
@Test public void test_RT_21960_Neither_Bold_Nor_Italic() {
- ParsedValue pv = new CssParser().parseExpr("-fx-font", "24 Amble");
+ ParsedValue pv = new CssParserShim().parseExpr("-fx-font", "24 Amble");
Font f = (Font)pv.convert(null);
assertEquals("Regular", f.getStyle());
assertEquals("Amble", f.getFamily());
assertEquals(24, f.getSize(),0);
}
< prev index next >