diff options
Diffstat (limited to 'theme-compiler/tests')
3 files changed, 7 insertions, 3 deletions
diff --git a/theme-compiler/tests/resources/css/functions.css b/theme-compiler/tests/resources/css/functions.css index 45d42b34de..0a8fcbf5a8 100644 --- a/theme-compiler/tests/resources/css/functions.css +++ b/theme-compiler/tests/resources/css/functions.css @@ -14,4 +14,6 @@ color: hsl(33, 7%, 89%); color: hsl(33, 7%, 95%); color: rgb(1, 2, 3); -}
\ No newline at end of file + percents: -20%; + percents: 33.33%; +} diff --git a/theme-compiler/tests/resources/scss/functions.scss b/theme-compiler/tests/resources/scss/functions.scss index 4230850b2a..8638d0afaa 100644 --- a/theme-compiler/tests/resources/scss/functions.scss +++ b/theme-compiler/tests/resources/scss/functions.scss @@ -19,4 +19,6 @@ $blue:3; color : $base-color; color : $app-bg-color; color: rgb($red, $green, $blue); -}
\ No newline at end of file + percents: percentage(-0.2); + percents: percentage(0.3333); +} diff --git a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java index b50172ac2f..bd214986c0 100644 --- a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java +++ b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/Functions.java @@ -43,7 +43,7 @@ public class Functions extends AbstractTestBase { ScssStylesheet root = handler.getStyleSheet(); Assert.assertEquals(6, root.getChildren().size()); BlockNode blockNode = (BlockNode) root.getChildren().get(5); - Assert.assertEquals(15, blockNode.getChildren().size()); + Assert.assertEquals(17, blockNode.getChildren().size()); } @Test |