From 626b2c1691656711cb0547f1f397e72ff5f5b1a1 Mon Sep 17 00:00:00 2001 From: Michael Ennen Date: Sat, 22 Sep 2018 23:26:13 -0700 Subject: [PATCH] test --- .../src/test/java/test/javafx/css/CssParserTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java b/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java index 83280b4585..96e91065f9 100644 --- a/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java +++ b/modules/javafx.graphics/src/test/java/test/javafx/css/CssParserTest.java @@ -328,6 +328,10 @@ public void testFadein() { // Throws IAE when second argument to fadein is not a percent. try { new CssParser().parse("* { -fx-background-color: fadein(rgba(35, 70, 112, 1), 5); }"); + rules = ss.getRules(); + decls = RuleShim.getUnobservedDeclarationList(ss.getRules().get(0)); + decl = decls.get(0); + value = decl.getParsedValue(); fail("css \"fadein\" IllegalArgumentException is not thrown for non-percent argument"); } catch (IllegalArgumentException ex) {} } @@ -445,7 +449,11 @@ public void testFadeout() { // Throws IAE when second argument to fadeout is not a percent. try { - new CssParser().parse("* { -fx-background-color: fadeout(rgba(35, 70, 112, 1), 3px); }"); + ss = new CssParser().parse("* { -fx-background-color: fadeout(rgba(35, 70, 112, 1), 3px); }"); + rules = ss.getRules(); + decls = RuleShim.getUnobservedDeclarationList(ss.getRules().get(0)); + decl = decls.get(0); + value = decl.getParsedValue(); fail("css \"fadein\" IllegalArgumentException is not thrown for non-percent argument"); } catch (IllegalArgumentException ex) {} }