Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brcolow committed Sep 23, 2018
1 parent 33e1b6e commit 626b2c1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
}
Expand Down Expand Up @@ -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) {}
}
Expand Down

0 comments on commit 626b2c1

Please sign in to comment.