From 915c37b569600a8d37db2a0800a30474da49e255 Mon Sep 17 00:00:00 2001
From: Mika Murtojarvi <mika@vaadin.com>
Date: Fri, 17 Jan 2014 13:50:35 +0200
Subject: Sass compiler now treats null-valued variables as unassigned
 (#12430).

Change-Id: I13a11b4c7d148646ad3eb5492d9dd8d736e63f39
---
 .../automatic/css/variable-defaults-with-null.css     |  5 +++++
 .../automatic/scss/variable-defaults-with-null.scss   | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 theme-compiler/tests/resources/automatic/css/variable-defaults-with-null.css
 create mode 100644 theme-compiler/tests/resources/automatic/scss/variable-defaults-with-null.scss

(limited to 'theme-compiler/tests/resources/automatic')

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
-- 
cgit v1.2.3