aboutsummaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests
diff options
context:
space:
mode:
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r--theme-compiler/tests/resources/automatic/css/contains-in-if.css7
-rw-r--r--theme-compiler/tests/resources/automatic/scss/contains-in-if.scss18
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