aboutsummaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/resources
diff options
context:
space:
mode:
authorMika Murtojarvi <mika@vaadin.com>2014-01-17 13:50:35 +0200
committerMika Murtojarvi <mika@vaadin.com>2014-02-06 11:14:50 +0200
commit915c37b569600a8d37db2a0800a30474da49e255 (patch)
tree1d59454a97d6328ab503bc24ce8fbc47d840d3f2 /theme-compiler/tests/resources
parent2c1f8e67a71ad1163dd5b87f070987a05dfe35c5 (diff)
downloadvaadin-framework-915c37b569600a8d37db2a0800a30474da49e255.tar.gz
vaadin-framework-915c37b569600a8d37db2a0800a30474da49e255.zip
Sass compiler now treats null-valued variables as unassigned (#12430).
Change-Id: I13a11b4c7d148646ad3eb5492d9dd8d736e63f39
Diffstat (limited to 'theme-compiler/tests/resources')
-rw-r--r--theme-compiler/tests/resources/automatic/css/variable-defaults-with-null.css5
-rw-r--r--theme-compiler/tests/resources/automatic/scss/variable-defaults-with-null.scss19
2 files changed, 24 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/variable-defaults-with-null.css b/theme-compiler/tests/resources/automatic/css/variable-defaults-with-null.css
new file mode 100644
index 0000000000..0e3483817b
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/variable-defaults-with-null.css
@@ -0,0 +1,5 @@
+.test {
+ first: "Non-null";
+ second: "Also non-null";
+ third: "Not null";
+} \ No newline at end of file
diff --git a/theme-compiler/tests/resources/automatic/scss/variable-defaults-with-null.scss b/theme-compiler/tests/resources/automatic/scss/variable-defaults-with-null.scss
new file mode 100644
index 0000000000..0bfa374304
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/variable-defaults-with-null.scss
@@ -0,0 +1,19 @@
+$var: null;
+$var: "Non-null" !default;
+
+$var2: null;
+$var2: "Also non-null" !default;
+$var2: "Null content" !default;
+
+$list-of-nulls: null null;
+$list-of-nulls: "Non-null" !default;
+
+$mixed-list: null "Not null" null;
+$mixed-list: "null" !default;
+
+.test {
+ first: $var;
+ second: $var2;
+ hidden: $list-of-nulls;
+ third: $mixed-list;
+} \ No newline at end of file