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 626b2c1 commit c2b7109
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ public Color convert(ParsedValue<ParsedValue[], Color> value, Font font) {
ParsedValue[] values = value.getValue();
final Color color = (Color) values[0].convert(font);
final Size transparency = (Size) values[1].convert(font);
System.out.println("transpareny.getUnits(): " + transparency.getUnits());
if (transparency.getUnits() != SizeUnits.PERCENT) {
throw new IllegalArgumentException("second argument to fadeout must be a percent but was: " + transparency);
}
Original file line number Diff line number Diff line change
@@ -454,7 +454,7 @@ public void testFadeout() {
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");
fail("css \"fadeout\" IllegalArgumentException is not thrown for non-percent argument");
} catch (IllegalArgumentException ex) {}
}

0 comments on commit c2b7109

Please sign in to comment.