From 899c688f6e90b03861b90bdbdb9ed26f38269ba2 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Mon, 10 Aug 2015 12:19:15 +1000 Subject: [PATCH] Activate specs for issue 1415 This PR activates specs for sass/libsass#1415 --- .../issue_1415/direct/expected.compact.css | 0 .../issue_1415/direct/expected.compressed.css | 0 .../issue_1415/direct/expected.expanded.css | 0 .../issue_1415/direct/expected_output.css | 0 .../issue_1415/direct/input.scss | 5 ++++ .../issue_1415/mixin/expected.compact.css | 3 +++ .../issue_1415/mixin/expected.compressed.css | 1 + .../issue_1415/mixin/expected.expanded.css | 7 +++++ .../issue_1415/mixin/expected_output.css | 5 ++++ .../issue_1415/mixin/input.scss | 27 +++++++++++++++++++ .../issue_1415/variable/expected.compact.css | 0 .../variable/expected.compressed.css | 0 .../issue_1415/variable/expected.expanded.css | 0 .../issue_1415/variable/expected_output.css | 0 .../issue_1415/variable/input.scss | 7 +++++ 15 files changed, 55 insertions(+) create mode 100644 spec/libsass-closed-issues/issue_1415/direct/expected.compact.css create mode 100644 spec/libsass-closed-issues/issue_1415/direct/expected.compressed.css create mode 100644 spec/libsass-closed-issues/issue_1415/direct/expected.expanded.css create mode 100644 spec/libsass-closed-issues/issue_1415/direct/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_1415/direct/input.scss create mode 100644 spec/libsass-closed-issues/issue_1415/mixin/expected.compact.css create mode 100644 spec/libsass-closed-issues/issue_1415/mixin/expected.compressed.css create mode 100644 spec/libsass-closed-issues/issue_1415/mixin/expected.expanded.css create mode 100644 spec/libsass-closed-issues/issue_1415/mixin/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_1415/mixin/input.scss create mode 100644 spec/libsass-closed-issues/issue_1415/variable/expected.compact.css create mode 100644 spec/libsass-closed-issues/issue_1415/variable/expected.compressed.css create mode 100644 spec/libsass-closed-issues/issue_1415/variable/expected.expanded.css create mode 100644 spec/libsass-closed-issues/issue_1415/variable/expected_output.css create mode 100644 spec/libsass-closed-issues/issue_1415/variable/input.scss diff --git a/spec/libsass-closed-issues/issue_1415/direct/expected.compact.css b/spec/libsass-closed-issues/issue_1415/direct/expected.compact.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/direct/expected.compressed.css b/spec/libsass-closed-issues/issue_1415/direct/expected.compressed.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/direct/expected.expanded.css b/spec/libsass-closed-issues/issue_1415/direct/expected.expanded.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/direct/expected_output.css b/spec/libsass-closed-issues/issue_1415/direct/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/direct/input.scss b/spec/libsass-closed-issues/issue_1415/direct/input.scss new file mode 100644 index 0000000000..02b5ab6933 --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/direct/input.scss @@ -0,0 +1,5 @@ +@if & { + foo { + foo: bar; + } +} diff --git a/spec/libsass-closed-issues/issue_1415/mixin/expected.compact.css b/spec/libsass-closed-issues/issue_1415/mixin/expected.compact.css new file mode 100644 index 0000000000..1a1554667f --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/mixin/expected.compact.css @@ -0,0 +1,3 @@ +.foo bar { color: red; } + +.foo bar baz { color: red; } diff --git a/spec/libsass-closed-issues/issue_1415/mixin/expected.compressed.css b/spec/libsass-closed-issues/issue_1415/mixin/expected.compressed.css new file mode 100644 index 0000000000..fa971a55a0 --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/mixin/expected.compressed.css @@ -0,0 +1 @@ +.foo bar{color:red}.foo bar baz{color:red} diff --git a/spec/libsass-closed-issues/issue_1415/mixin/expected.expanded.css b/spec/libsass-closed-issues/issue_1415/mixin/expected.expanded.css new file mode 100644 index 0000000000..7889895e04 --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/mixin/expected.expanded.css @@ -0,0 +1,7 @@ +.foo bar { + color: red; +} + +.foo bar baz { + color: red; +} diff --git a/spec/libsass-closed-issues/issue_1415/mixin/expected_output.css b/spec/libsass-closed-issues/issue_1415/mixin/expected_output.css new file mode 100644 index 0000000000..cea8b1543f --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/mixin/expected_output.css @@ -0,0 +1,5 @@ +.foo bar { + color: red; } + +.foo bar baz { + color: red; } diff --git a/spec/libsass-closed-issues/issue_1415/mixin/input.scss b/spec/libsass-closed-issues/issue_1415/mixin/input.scss new file mode 100644 index 0000000000..2035775df4 --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/mixin/input.scss @@ -0,0 +1,27 @@ +@mixin prepend-foo { + $parent: &; + + @if $parent { + .foo & { + @content; + } + } @else { + .foo { + @content; + } + } +} + +@include prepend-foo { + bar { + color: red; + } +} + +bar { + @include prepend-foo { + baz { + color: red; + } + } +} diff --git a/spec/libsass-closed-issues/issue_1415/variable/expected.compact.css b/spec/libsass-closed-issues/issue_1415/variable/expected.compact.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/variable/expected.compressed.css b/spec/libsass-closed-issues/issue_1415/variable/expected.compressed.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/variable/expected.expanded.css b/spec/libsass-closed-issues/issue_1415/variable/expected.expanded.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/variable/expected_output.css b/spec/libsass-closed-issues/issue_1415/variable/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-closed-issues/issue_1415/variable/input.scss b/spec/libsass-closed-issues/issue_1415/variable/input.scss new file mode 100644 index 0000000000..99c010fbb2 --- /dev/null +++ b/spec/libsass-closed-issues/issue_1415/variable/input.scss @@ -0,0 +1,7 @@ +$parent: &; + +@if $parent { + foo { + foo: bar; + } +}