diff options
author | Haijian Wang <haijian@vaadin.com> | 2013-01-08 15:47:31 +0200 |
---|---|---|
committer | Haijian Wang <haijian@vaadin.com> | 2013-01-08 15:47:31 +0200 |
commit | e788649967cbfcf13f85d07889cba48153fbe185 (patch) | |
tree | cba8d792fd5c6f2c9b486da160142b5883d0e833 /theme-compiler/tests | |
parent | 039374633fb30da7a1f554552ae3e7b6c54a2dd8 (diff) | |
download | vaadin-framework-e788649967cbfcf13f85d07889cba48153fbe185.tar.gz vaadin-framework-e788649967cbfcf13f85d07889cba48153fbe185.zip |
supports contains in @if, related to Ticket #9975
Change-Id: Ib128801a06a03ebd4460e87a6963a01483f58cec
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r-- | theme-compiler/tests/resources/automatic/css/contains-in-if.css | 7 | ||||
-rw-r--r-- | theme-compiler/tests/resources/automatic/scss/contains-in-if.scss | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/contains-in-if.css b/theme-compiler/tests/resources/automatic/css/contains-in-if.css new file mode 100644 index 0000000000..f41ae18a9e --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/contains-in-if.css @@ -0,0 +1,7 @@ +.yes { + color: green; +} + +.no { + color: red; +} diff --git a/theme-compiler/tests/resources/automatic/scss/contains-in-if.scss b/theme-compiler/tests/resources/automatic/scss/contains-in-if.scss new file mode 100644 index 0000000000..4bb7e7a6ae --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/contains-in-if.scss @@ -0,0 +1,18 @@ +@if (contains(a b c, b)) { + .yes { + color: green; + } +} @else { + .no { + color: red; + } +} +@if (contains(a b c, d)) { + .yes { + color: green; + } +} @else { + .no { + color: red; + } +}
\ No newline at end of file |