< prev index next >

modules/javafx.graphics/src/test/java/test/javafx/scene/text/Text_cssMethods_Test.java

Print this page

42 import test.com.sun.javafx.test.CssMethodsTestBase;
43 
44 @RunWith(Parameterized.class)
45 public class Text_cssMethods_Test extends CssMethodsTestBase {
46     private static final Text TEST_TEXT = new Text();
47 
48     @Parameters
49     public static Collection data() {
50         return Arrays.asList(new Object[] {
51             config(TEST_TEXT, "font", Font.getDefault(),
52                    "-fx-font", Font.font("Verdana", FontWeight.BOLD, 22)),
53             config(TEST_TEXT, "underline", false, "-fx-underline", true),
54             config(TEST_TEXT, "strikethrough", false,
55                    "-fx-strikethrough", true),
56             config(TEST_TEXT, "textAlignment", TextAlignment.LEFT,
57                    "-fx-text-alignment", TextAlignment.CENTER),
58             config(TEST_TEXT, "textOrigin", VPos.BASELINE,
59                    "-fx-text-origin", VPos.BOTTOM),
60             config(TEST_TEXT, "translateX", 0.0, "-fx-translate-x", 10.0),
61             config(TEST_TEXT, "fontSmoothingType", FontSmoothingType.LCD,
62                 "-fx-font-smoothing-type", FontSmoothingType.GRAY)

63         });
64     }
65 
66     public Text_cssMethods_Test(final Configuration configuration) {
67         super(configuration);
68     }
69 }

42 import test.com.sun.javafx.test.CssMethodsTestBase;
43 
44 @RunWith(Parameterized.class)
45 public class Text_cssMethods_Test extends CssMethodsTestBase {
46     private static final Text TEST_TEXT = new Text();
47 
48     @Parameters
49     public static Collection data() {
50         return Arrays.asList(new Object[] {
51             config(TEST_TEXT, "font", Font.getDefault(),
52                    "-fx-font", Font.font("Verdana", FontWeight.BOLD, 22)),
53             config(TEST_TEXT, "underline", false, "-fx-underline", true),
54             config(TEST_TEXT, "strikethrough", false,
55                    "-fx-strikethrough", true),
56             config(TEST_TEXT, "textAlignment", TextAlignment.LEFT,
57                    "-fx-text-alignment", TextAlignment.CENTER),
58             config(TEST_TEXT, "textOrigin", VPos.BASELINE,
59                    "-fx-text-origin", VPos.BOTTOM),
60             config(TEST_TEXT, "translateX", 0.0, "-fx-translate-x", 10.0),
61             config(TEST_TEXT, "fontSmoothingType", FontSmoothingType.LCD,
62                 "-fx-font-smoothing-type", FontSmoothingType.GRAY),
63             config(TEST_TEXT, "tabSize", 8, "-fx-tab-size", 4)
64         });
65     }
66 
67     public Text_cssMethods_Test(final Configuration configuration) {
68         super(configuration);
69     }
70 }
< prev index next >