From 82fc8d1f475018ab92a0577da9d4e6c68abb2a78 Mon Sep 17 00:00:00 2001 From: smikes Date: Fri, 2 Jan 2015 13:07:05 -0700 Subject: [PATCH 1/2] add test for escaped #{} --- spec/libsass/quote/escaped-interpolant/expected_output.css | 3 +++ spec/libsass/quote/escaped-interpolant/input.scss | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 spec/libsass/quote/escaped-interpolant/expected_output.css create mode 100644 spec/libsass/quote/escaped-interpolant/input.scss diff --git a/spec/libsass/quote/escaped-interpolant/expected_output.css b/spec/libsass/quote/escaped-interpolant/expected_output.css new file mode 100644 index 0000000000..d81bee7714 --- /dev/null +++ b/spec/libsass/quote/escaped-interpolant/expected_output.css @@ -0,0 +1,3 @@ +.test { + double: "foo#{$not-interpolant}bar"; + none: foo#{$not-interpolant}bar; } diff --git a/spec/libsass/quote/escaped-interpolant/input.scss b/spec/libsass/quote/escaped-interpolant/input.scss new file mode 100644 index 0000000000..019d351838 --- /dev/null +++ b/spec/libsass/quote/escaped-interpolant/input.scss @@ -0,0 +1,6 @@ +$str: "foo\#{$not-interpolant}bar"; + +.test { + double: "#{$str}"; + none: #{$str}; +} \ No newline at end of file From 33b072485a19083187e4275cd6daf18488ce6a2f Mon Sep 17 00:00:00 2001 From: smikes Date: Fri, 2 Jan 2015 18:32:26 -0700 Subject: [PATCH 2/2] move to TODO per line comment --- .../escaped-interpolant-2backslash/expected_output.css | 3 +++ .../quote/escaped-interpolant-2backslash/input.scss | 7 +++++++ .../escaped-interpolant-3backslash/expected_output.css | 3 +++ .../quote/escaped-interpolant-3backslash/input.scss | 6 ++++++ .../quote/escaped-interpolant/expected_output.css | 0 .../quote/escaped-interpolant/input.scss | 0 6 files changed, 19 insertions(+) create mode 100644 spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/expected_output.css create mode 100644 spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/input.scss create mode 100644 spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/expected_output.css create mode 100644 spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/input.scss rename spec/{libsass => libsass-todo-tests}/quote/escaped-interpolant/expected_output.css (100%) rename spec/{libsass => libsass-todo-tests}/quote/escaped-interpolant/input.scss (100%) diff --git a/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/expected_output.css b/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/expected_output.css new file mode 100644 index 0000000000..1b2aee052b --- /dev/null +++ b/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/expected_output.css @@ -0,0 +1,3 @@ +.test { + double: "foo\\testbar"; + none: foo\testbar; } diff --git a/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/input.scss b/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/input.scss new file mode 100644 index 0000000000..1a13034d99 --- /dev/null +++ b/spec/libsass-todo-tests/quote/escaped-interpolant-2backslash/input.scss @@ -0,0 +1,7 @@ +$interpolant: "test"; +$str: "foo\\#{$interpolant}bar"; + +.test { + double: "#{$str}"; + none: #{$str}; +} diff --git a/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/expected_output.css b/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/expected_output.css new file mode 100644 index 0000000000..5db9504e06 --- /dev/null +++ b/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/expected_output.css @@ -0,0 +1,3 @@ +.test { + double: "foo\\#{$not-interpolant}bar"; + none: foo\#{$not-interpolant}bar; } diff --git a/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/input.scss b/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/input.scss new file mode 100644 index 0000000000..b442b57205 --- /dev/null +++ b/spec/libsass-todo-tests/quote/escaped-interpolant-3backslash/input.scss @@ -0,0 +1,6 @@ +$str: "foo\\\#{$not-interpolant}bar"; + +.test { + double: "#{$str}"; + none: #{$str}; +} diff --git a/spec/libsass/quote/escaped-interpolant/expected_output.css b/spec/libsass-todo-tests/quote/escaped-interpolant/expected_output.css similarity index 100% rename from spec/libsass/quote/escaped-interpolant/expected_output.css rename to spec/libsass-todo-tests/quote/escaped-interpolant/expected_output.css diff --git a/spec/libsass/quote/escaped-interpolant/input.scss b/spec/libsass-todo-tests/quote/escaped-interpolant/input.scss similarity index 100% rename from spec/libsass/quote/escaped-interpolant/input.scss rename to spec/libsass-todo-tests/quote/escaped-interpolant/input.scss