< prev index next >
modules/javafx.controls/src/test/java/test/javafx/scene/chart/XYChartTest.java
Print this page
rev 10372 : 8176404: Remove public test-only convenience method from CssParser
Reviewed-by:
*** 32,42 ****
import javafx.collections.*;
import javafx.scene.chart.Axis.TickMark;
import javafx.css.ParsedValue;
import javafx.css.CssMetaData;
import javafx.css.StyleableProperty;
! import javafx.css.CssParser;
import javafx.scene.Node;
import javafx.scene.ParentShim;
import javafx.scene.Scene;
import javafx.scene.chart.AreaChart;
import javafx.scene.chart.Axis;
--- 32,42 ----
import javafx.collections.*;
import javafx.scene.chart.Axis.TickMark;
import javafx.css.ParsedValue;
import javafx.css.CssMetaData;
import javafx.css.StyleableProperty;
! import javafx.css.CssParserShim;
import javafx.scene.Node;
import javafx.scene.ParentShim;
import javafx.scene.Scene;
import javafx.scene.chart.AreaChart;
import javafx.scene.chart.Axis;
*** 84,94 ****
// default caspian value for font size = 10
assertEquals(10, new Double(f.getSize()).intValue());
assertEquals(10, new Double(AxisShim.get_measure(yaxis).getFont().getSize()).intValue());
// set tick label font via css and test if ticklabelfont, measure and tick textnode follow.
! ParsedValue pv = new CssParser().parseExpr("-fx-tick-label-font","0.916667em System");
Object val = pv.convert(null);
CssMetaData prop = ((StyleableProperty)yaxis.tickLabelFontProperty()).getCssMetaData();
prop.set(yaxis, val, null);
// confirm tickLabelFont, measure and tick's textnode all are in sync with -fx-tick-label-font
assertEquals(11, new Double(yaxis.getTickLabelFont().getSize()).intValue());
--- 84,94 ----
// default caspian value for font size = 10
assertEquals(10, new Double(f.getSize()).intValue());
assertEquals(10, new Double(AxisShim.get_measure(yaxis).getFont().getSize()).intValue());
// set tick label font via css and test if ticklabelfont, measure and tick textnode follow.
! ParsedValue pv = new CssParserShim().parseExpr("-fx-tick-label-font","0.916667em System");
Object val = pv.convert(null);
CssMetaData prop = ((StyleableProperty)yaxis.tickLabelFontProperty()).getCssMetaData();
prop.set(yaxis, val, null);
// confirm tickLabelFont, measure and tick's textnode all are in sync with -fx-tick-label-font
assertEquals(11, new Double(yaxis.getTickLabelFont().getSize()).intValue());
< prev index next >