From c2b7109d8290de074035d286fb6a76c84988c124 Mon Sep 17 00:00:00 2001 From: Michael Ennen Date: Sun, 23 Sep 2018 03:06:01 -0700 Subject: [PATCH] test --- .../main/java/javafx/css/converter/FadeoutColorConverter.java | 1 + .../src/test/java/test/javafx/css/CssParserTest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java b/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java index 81ecc5fe9e..ba37b331f1 100644 --- a/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java +++ b/modules/javafx.graphics/src/main/java/javafx/css/converter/FadeoutColorConverter.java @@ -57,6 +57,7 @@ public Color convert(ParsedValue 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); } 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 96e91065f9..d0a37e98ca 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 @@ -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) {} }