From e788649967cbfcf13f85d07889cba48153fbe185 Mon Sep 17 00:00:00 2001 From: Haijian Wang Date: Tue, 8 Jan 2013 15:47:31 +0200 Subject: supports contains in @if, related to Ticket #9975 Change-Id: Ib128801a06a03ebd4460e87a6963a01483f58cec --- .../tests/resources/automatic/css/contains-in-if.css | 7 +++++++ .../tests/resources/automatic/scss/contains-in-if.scss | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/css/contains-in-if.css create mode 100644 theme-compiler/tests/resources/automatic/scss/contains-in-if.scss (limited to 'theme-compiler/tests') 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 -- cgit v1.2.3