From 35bb77636e5d4f13c87660f5597a407fa31ac000 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Tue, 27 Oct 2015 00:02:58 +1100 Subject: [PATCH] Add specs for issue 1217 This PR add specs for sass/libsass#1217 --- .../issue_1217/expected.compact.css | 1 + .../issue_1217/expected.compressed.css | 1 + .../issue_1217/expected.expanded.css | 3 +++ .../issue_1217/expected_output.css | 2 ++ spec/libsass-todo-issues/issue_1217/input.scss | 13 +++++++++++++ 5 files changed, 20 insertions(+) create mode 100644 spec/libsass-todo-issues/issue_1217/expected.compact.css create mode 100644 spec/libsass-todo-issues/issue_1217/expected.compressed.css create mode 100644 spec/libsass-todo-issues/issue_1217/expected.expanded.css create mode 100644 spec/libsass-todo-issues/issue_1217/expected_output.css create mode 100644 spec/libsass-todo-issues/issue_1217/input.scss diff --git a/spec/libsass-todo-issues/issue_1217/expected.compact.css b/spec/libsass-todo-issues/issue_1217/expected.compact.css new file mode 100644 index 0000000000..a0f261b98c --- /dev/null +++ b/spec/libsass-todo-issues/issue_1217/expected.compact.css @@ -0,0 +1 @@ +foo [data-bar] { baz: bam; } diff --git a/spec/libsass-todo-issues/issue_1217/expected.compressed.css b/spec/libsass-todo-issues/issue_1217/expected.compressed.css new file mode 100644 index 0000000000..cd589df11c --- /dev/null +++ b/spec/libsass-todo-issues/issue_1217/expected.compressed.css @@ -0,0 +1 @@ +foo [data-bar]{baz:bam} diff --git a/spec/libsass-todo-issues/issue_1217/expected.expanded.css b/spec/libsass-todo-issues/issue_1217/expected.expanded.css new file mode 100644 index 0000000000..01302aeb0c --- /dev/null +++ b/spec/libsass-todo-issues/issue_1217/expected.expanded.css @@ -0,0 +1,3 @@ +foo [data-bar] { + baz: bam; +} diff --git a/spec/libsass-todo-issues/issue_1217/expected_output.css b/spec/libsass-todo-issues/issue_1217/expected_output.css new file mode 100644 index 0000000000..14d79f2f6c --- /dev/null +++ b/spec/libsass-todo-issues/issue_1217/expected_output.css @@ -0,0 +1,2 @@ +foo [data-bar] { + baz: bam; } diff --git a/spec/libsass-todo-issues/issue_1217/input.scss b/spec/libsass-todo-issues/issue_1217/input.scss new file mode 100644 index 0000000000..a3a2249e9a --- /dev/null +++ b/spec/libsass-todo-issues/issue_1217/input.scss @@ -0,0 +1,13 @@ +@function foo($foo) { + @return $foo; +} + +@function data($foo) { + @return '[data-' + $foo + ']'; +} + +#{foo(foo)} { + #{data('bar')} { + baz: bam; + } +}