From 53b2b4196b8d51a968fd5233677981c11282e290 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 27 Dec 2015 17:25:50 +1100 Subject: [PATCH] Update specs for error, warn, debug directives in nested properties Made the tests more thorough based in added information in https://github.com/sass/libsass/issues/1653#issuecomment-166528502. Also moved the specs to a more appropriate location. --- .../debug-directive-nested/function/error | 3 +++ .../function/expected.compact.css | 1 + .../function/expected.compressed.css | 1 + .../function/expected.expanded.css | 3 +++ .../function/expected_output.css | 2 ++ .../debug-directive-nested/function/input.scss | 10 ++++++++++ .../debug-directive-nested/inline}/error | 2 +- .../debug-directive-nested/inline}/expected_output.css | 0 .../debug-directive-nested/inline/input.scss | 6 ++++++ .../debug-directive-nested/inline}/status | 0 .../debug-directive-nested/mixin/error | 4 ++++ .../debug-directive-nested/mixin/expected.compact.css | 1 + .../mixin/expected.compressed.css | 1 + .../debug-directive-nested/mixin/expected.expanded.css | 3 +++ .../debug-directive-nested/mixin/expected_output.css | 2 ++ .../debug-directive-nested/mixin/input.scss | 10 ++++++++++ .../error-directive-nested/function/error | 3 +++ .../function/expected.compact.css} | 0 .../function/expected.compressed.css} | 0 .../function/expected.expanded.css | 0 .../function/expected_output.css | 0 .../error-directive-nested/function/input.scss | 10 ++++++++++ .../error-directive-nested/function}/status | 0 .../error-directive-nested/inline}/error | 2 +- .../error-directive-nested/inline/expected_output.css | 0 .../error-directive-nested/inline/input.scss | 6 ++++++ .../error-directive-nested/inline}/status | 0 .../error-directive-nested/mixin/error | 4 ++++ .../error-directive-nested/mixin/expected.compact.css | 0 .../mixin/expected.compressed.css | 0 .../error-directive-nested/mixin/expected.expanded.css | 0 .../error-directive-nested/mixin/expected_output.css | 0 .../error-directive-nested/mixin/input.scss | 10 ++++++++++ .../error-directive-nested/mixin/status | 1 + .../errors/addition/alpha-channels/error | 2 +- .../errors/subtraction/alpha-channels/error | 2 +- .../warn-directive-nested/function/error | 3 +++ .../function/expected.compact.css | 1 + .../function/expected.compressed.css | 1 + .../function/expected.expanded.css | 3 +++ .../warn-directive-nested/function/expected_output.css | 2 ++ .../warn-directive-nested/function/input.scss | 10 ++++++++++ .../warn-directive-nested/inline}/error | 2 +- .../warn-directive-nested/inline/expected_output.css | 0 .../warn-directive-nested/inline/input.scss | 6 ++++++ .../warn-directive-nested/inline/status | 1 + .../warn-directive-nested/mixin/error | 4 ++++ .../warn-directive-nested/mixin/expected.compact.css | 1 + .../mixin/expected.compressed.css | 1 + .../warn-directive-nested/mixin/expected.expanded.css | 3 +++ .../warn-directive-nested/mixin/expected_output.css | 2 ++ .../warn-directive-nested/mixin/input.scss | 10 ++++++++++ spec/misc/debug-directive-nested-todo/input.scss | 6 ------ spec/misc/error-directive-nested-todo/input.scss | 6 ------ spec/misc/warn-directive-nested-todo/input.scss | 6 ------ 55 files changed, 134 insertions(+), 23 deletions(-) create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/error create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/expected.compact.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/expected.compressed.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/expected.expanded.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/expected_output.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/function/input.scss rename spec/{misc/warn-directive-nested-todo => libsass-todo-tests/debug-directive-nested/inline}/error (50%) rename spec/{misc/debug-directive-nested-todo => libsass-todo-tests/debug-directive-nested/inline}/expected_output.css (100%) create mode 100644 spec/libsass-todo-tests/debug-directive-nested/inline/input.scss rename spec/{misc/debug-directive-nested-todo => libsass-todo-tests/debug-directive-nested/inline}/status (100%) create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/error create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compact.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compressed.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/expected.expanded.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/expected_output.css create mode 100644 spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss create mode 100644 spec/libsass-todo-tests/error-directive-nested/function/error rename spec/{misc/error-directive-nested-todo/expected_output.css => libsass-todo-tests/error-directive-nested/function/expected.compact.css} (100%) rename spec/{misc/warn-directive-nested-todo/expected_output.css => libsass-todo-tests/error-directive-nested/function/expected.compressed.css} (100%) create mode 100644 spec/libsass-todo-tests/error-directive-nested/function/expected.expanded.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/function/expected_output.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/function/input.scss rename spec/{misc/error-directive-nested-todo => libsass-todo-tests/error-directive-nested/function}/status (100%) rename spec/{misc/error-directive-nested-todo => libsass-todo-tests/error-directive-nested/inline}/error (50%) create mode 100644 spec/libsass-todo-tests/error-directive-nested/inline/expected_output.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/inline/input.scss rename spec/{misc/warn-directive-nested-todo => libsass-todo-tests/error-directive-nested/inline}/status (100%) create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/error create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/expected.compact.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/expected.compressed.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/expected.expanded.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/expected_output.css create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/input.scss create mode 100644 spec/libsass-todo-tests/error-directive-nested/mixin/status create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/error create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/expected.compact.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/expected.compressed.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/expected.expanded.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/expected_output.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/function/input.scss rename spec/{misc/debug-directive-nested-todo => libsass-todo-tests/warn-directive-nested/inline}/error (50%) create mode 100644 spec/libsass-todo-tests/warn-directive-nested/inline/expected_output.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/inline/input.scss create mode 100644 spec/libsass-todo-tests/warn-directive-nested/inline/status create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/error create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compact.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compressed.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/expected.expanded.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/expected_output.css create mode 100644 spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss delete mode 100644 spec/misc/debug-directive-nested-todo/input.scss delete mode 100644 spec/misc/error-directive-nested-todo/input.scss delete mode 100644 spec/misc/warn-directive-nested-todo/input.scss diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/error b/spec/libsass-todo-tests/debug-directive-nested/function/error new file mode 100644 index 0000000000..ef8ec18469 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/error @@ -0,0 +1,3 @@ +WARNING: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/debug-directive-nested/function/input.scss + diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/expected.compact.css b/spec/libsass-todo-tests/debug-directive-nested/function/expected.compact.css new file mode 100644 index 0000000000..fc607edb11 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/expected.compact.css @@ -0,0 +1 @@ +a { b-c: d; } diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/expected.compressed.css b/spec/libsass-todo-tests/debug-directive-nested/function/expected.compressed.css new file mode 100644 index 0000000000..a2c40d2e0a --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/expected.compressed.css @@ -0,0 +1 @@ +a{b-c:d} diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/expected.expanded.css b/spec/libsass-todo-tests/debug-directive-nested/function/expected.expanded.css new file mode 100644 index 0000000000..f7255d4510 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/expected.expanded.css @@ -0,0 +1,3 @@ +a { + b-c: d; +} diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/expected_output.css b/spec/libsass-todo-tests/debug-directive-nested/function/expected_output.css new file mode 100644 index 0000000000..70564d446a --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/expected_output.css @@ -0,0 +1,2 @@ +a { + b-c: d; } diff --git a/spec/libsass-todo-tests/debug-directive-nested/function/input.scss b/spec/libsass-todo-tests/debug-directive-nested/function/input.scss new file mode 100644 index 0000000000..2e0141cc80 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/function/input.scss @@ -0,0 +1,10 @@ +@function c() { + @warn test; + @return d; +} + +a { + b: { + c: c(); + } +} diff --git a/spec/misc/warn-directive-nested-todo/error b/spec/libsass-todo-tests/debug-directive-nested/inline/error similarity index 50% rename from spec/misc/warn-directive-nested-todo/error rename to spec/libsass-todo-tests/debug-directive-nested/inline/error index 87d45d38d2..634ca658d5 100644 --- a/spec/misc/warn-directive-nested-todo/error +++ b/spec/libsass-todo-tests/debug-directive-nested/inline/error @@ -1,3 +1,3 @@ Error: Illegal nesting: Only properties may be nested beneath properties. - on line 3 of /home/saper/sw/sass-spec/spec/misc/warn-directive-nested-todo/input.scss + on line 3 of /sass/sass-spec/spec/libsass-todo-tests/debug-directive-nested/inline/input.scss Use --trace for backtrace. diff --git a/spec/misc/debug-directive-nested-todo/expected_output.css b/spec/libsass-todo-tests/debug-directive-nested/inline/expected_output.css similarity index 100% rename from spec/misc/debug-directive-nested-todo/expected_output.css rename to spec/libsass-todo-tests/debug-directive-nested/inline/expected_output.css diff --git a/spec/libsass-todo-tests/debug-directive-nested/inline/input.scss b/spec/libsass-todo-tests/debug-directive-nested/inline/input.scss new file mode 100644 index 0000000000..84115b86cd --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/inline/input.scss @@ -0,0 +1,6 @@ +a { + b: { + @debug test; + c: d; + } +} diff --git a/spec/misc/debug-directive-nested-todo/status b/spec/libsass-todo-tests/debug-directive-nested/inline/status similarity index 100% rename from spec/misc/debug-directive-nested-todo/status rename to spec/libsass-todo-tests/debug-directive-nested/inline/status diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/error b/spec/libsass-todo-tests/debug-directive-nested/mixin/error new file mode 100644 index 0000000000..2e2d43685f --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/error @@ -0,0 +1,4 @@ +WARNING: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss, in `c' + from line 8 of /sass/sass-spec/spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss + diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compact.css b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compact.css new file mode 100644 index 0000000000..fc607edb11 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compact.css @@ -0,0 +1 @@ +a { b-c: d; } diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compressed.css b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compressed.css new file mode 100644 index 0000000000..a2c40d2e0a --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.compressed.css @@ -0,0 +1 @@ +a{b-c:d} diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.expanded.css b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.expanded.css new file mode 100644 index 0000000000..f7255d4510 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected.expanded.css @@ -0,0 +1,3 @@ +a { + b-c: d; +} diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/expected_output.css b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected_output.css new file mode 100644 index 0000000000..70564d446a --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/expected_output.css @@ -0,0 +1,2 @@ +a { + b-c: d; } diff --git a/spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss b/spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss new file mode 100644 index 0000000000..9db5638c57 --- /dev/null +++ b/spec/libsass-todo-tests/debug-directive-nested/mixin/input.scss @@ -0,0 +1,10 @@ +@mixin c() { + @warn test; + c: d; +} + +a { + b: { + @include c(); + } +} diff --git a/spec/libsass-todo-tests/error-directive-nested/function/error b/spec/libsass-todo-tests/error-directive-nested/function/error new file mode 100644 index 0000000000..01fed3dbca --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/function/error @@ -0,0 +1,3 @@ +Error: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/error-directive-nested/function/input.scss + Use --trace for backtrace. diff --git a/spec/misc/error-directive-nested-todo/expected_output.css b/spec/libsass-todo-tests/error-directive-nested/function/expected.compact.css similarity index 100% rename from spec/misc/error-directive-nested-todo/expected_output.css rename to spec/libsass-todo-tests/error-directive-nested/function/expected.compact.css diff --git a/spec/misc/warn-directive-nested-todo/expected_output.css b/spec/libsass-todo-tests/error-directive-nested/function/expected.compressed.css similarity index 100% rename from spec/misc/warn-directive-nested-todo/expected_output.css rename to spec/libsass-todo-tests/error-directive-nested/function/expected.compressed.css diff --git a/spec/libsass-todo-tests/error-directive-nested/function/expected.expanded.css b/spec/libsass-todo-tests/error-directive-nested/function/expected.expanded.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/function/expected_output.css b/spec/libsass-todo-tests/error-directive-nested/function/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/function/input.scss b/spec/libsass-todo-tests/error-directive-nested/function/input.scss new file mode 100644 index 0000000000..ff9b511d4b --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/function/input.scss @@ -0,0 +1,10 @@ +@function c() { + @error test; + @return d; +} + +a { + b: { + c: c(); + } +} diff --git a/spec/misc/error-directive-nested-todo/status b/spec/libsass-todo-tests/error-directive-nested/function/status similarity index 100% rename from spec/misc/error-directive-nested-todo/status rename to spec/libsass-todo-tests/error-directive-nested/function/status diff --git a/spec/misc/error-directive-nested-todo/error b/spec/libsass-todo-tests/error-directive-nested/inline/error similarity index 50% rename from spec/misc/error-directive-nested-todo/error rename to spec/libsass-todo-tests/error-directive-nested/inline/error index e4283e8e78..a22b4ab98f 100644 --- a/spec/misc/error-directive-nested-todo/error +++ b/spec/libsass-todo-tests/error-directive-nested/inline/error @@ -1,3 +1,3 @@ Error: Illegal nesting: Only properties may be nested beneath properties. - on line 3 of /home/saper/sw/sass-spec/spec/misc/error-directive-nested/input.scss + on line 3 of /sass/sass-spec/spec/libsass-todo-tests/error-directive-nested/inline/input.scss Use --trace for backtrace. diff --git a/spec/libsass-todo-tests/error-directive-nested/inline/expected_output.css b/spec/libsass-todo-tests/error-directive-nested/inline/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/inline/input.scss b/spec/libsass-todo-tests/error-directive-nested/inline/input.scss new file mode 100644 index 0000000000..956f3534f7 --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/inline/input.scss @@ -0,0 +1,6 @@ +a { + b: { + @error test; + c: d; + } +} diff --git a/spec/misc/warn-directive-nested-todo/status b/spec/libsass-todo-tests/error-directive-nested/inline/status similarity index 100% rename from spec/misc/warn-directive-nested-todo/status rename to spec/libsass-todo-tests/error-directive-nested/inline/status diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/error b/spec/libsass-todo-tests/error-directive-nested/mixin/error new file mode 100644 index 0000000000..c08af5bd57 --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/mixin/error @@ -0,0 +1,4 @@ +Error: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/error-directive-nested/mixin/input.scss, in `c' + from line 8 of /sass/sass-spec/spec/libsass-todo-tests/error-directive-nested/mixin/input.scss + Use --trace for backtrace. diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/expected.compact.css b/spec/libsass-todo-tests/error-directive-nested/mixin/expected.compact.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/expected.compressed.css b/spec/libsass-todo-tests/error-directive-nested/mixin/expected.compressed.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/expected.expanded.css b/spec/libsass-todo-tests/error-directive-nested/mixin/expected.expanded.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/expected_output.css b/spec/libsass-todo-tests/error-directive-nested/mixin/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/input.scss b/spec/libsass-todo-tests/error-directive-nested/mixin/input.scss new file mode 100644 index 0000000000..cad8c6d14b --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/mixin/input.scss @@ -0,0 +1,10 @@ +@mixin c() { + @error test; + c: d; +} + +a { + b: { + @include c(); + } +} diff --git a/spec/libsass-todo-tests/error-directive-nested/mixin/status b/spec/libsass-todo-tests/error-directive-nested/mixin/status new file mode 100644 index 0000000000..b44fe09a7a --- /dev/null +++ b/spec/libsass-todo-tests/error-directive-nested/mixin/status @@ -0,0 +1 @@ +65 \ No newline at end of file diff --git a/spec/libsass-todo-tests/errors/addition/alpha-channels/error b/spec/libsass-todo-tests/errors/addition/alpha-channels/error index 64237198e1..568e726b0f 100644 --- a/spec/libsass-todo-tests/errors/addition/alpha-channels/error +++ b/spec/libsass-todo-tests/errors/addition/alpha-channels/error @@ -1,3 +1,3 @@ Error: Alpha channels must be equal: rgba(16, 16, 16, 0.5) + #aAa - on line 4 of /home/saper/sw/sass-spec/spec/errors/addition/alpha-channels-todo/input.scss + on line 4 of /sass/sass-spec/spec/libsass-todo-tests/errors/addition/alpha-channels/input.scss Use --trace for backtrace. diff --git a/spec/libsass-todo-tests/errors/subtraction/alpha-channels/error b/spec/libsass-todo-tests/errors/subtraction/alpha-channels/error index 6479478db9..fe9368e347 100644 --- a/spec/libsass-todo-tests/errors/subtraction/alpha-channels/error +++ b/spec/libsass-todo-tests/errors/subtraction/alpha-channels/error @@ -1,3 +1,3 @@ Error: Alpha channels must be equal: rgba(16, 16, 16, 0.5) - #aAa - on line 4 of /home/saper/sw/sass-spec/spec/errors/subtraction/alpha-channels-todo/input.scss + on line 4 of /sass/sass-spec/spec/libsass-todo-tests/errors/subtraction/alpha-channels/input.scss Use --trace for backtrace. diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/error b/spec/libsass-todo-tests/warn-directive-nested/function/error new file mode 100644 index 0000000000..4823542626 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/error @@ -0,0 +1,3 @@ +WARNING: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/warn-directive-nested/function/input.scss + diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/expected.compact.css b/spec/libsass-todo-tests/warn-directive-nested/function/expected.compact.css new file mode 100644 index 0000000000..fc607edb11 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/expected.compact.css @@ -0,0 +1 @@ +a { b-c: d; } diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/expected.compressed.css b/spec/libsass-todo-tests/warn-directive-nested/function/expected.compressed.css new file mode 100644 index 0000000000..a2c40d2e0a --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/expected.compressed.css @@ -0,0 +1 @@ +a{b-c:d} diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/expected.expanded.css b/spec/libsass-todo-tests/warn-directive-nested/function/expected.expanded.css new file mode 100644 index 0000000000..f7255d4510 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/expected.expanded.css @@ -0,0 +1,3 @@ +a { + b-c: d; +} diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/expected_output.css b/spec/libsass-todo-tests/warn-directive-nested/function/expected_output.css new file mode 100644 index 0000000000..70564d446a --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/expected_output.css @@ -0,0 +1,2 @@ +a { + b-c: d; } diff --git a/spec/libsass-todo-tests/warn-directive-nested/function/input.scss b/spec/libsass-todo-tests/warn-directive-nested/function/input.scss new file mode 100644 index 0000000000..2e0141cc80 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/function/input.scss @@ -0,0 +1,10 @@ +@function c() { + @warn test; + @return d; +} + +a { + b: { + c: c(); + } +} diff --git a/spec/misc/debug-directive-nested-todo/error b/spec/libsass-todo-tests/warn-directive-nested/inline/error similarity index 50% rename from spec/misc/debug-directive-nested-todo/error rename to spec/libsass-todo-tests/warn-directive-nested/inline/error index 5ed737082d..aba3e550fa 100644 --- a/spec/misc/debug-directive-nested-todo/error +++ b/spec/libsass-todo-tests/warn-directive-nested/inline/error @@ -1,3 +1,3 @@ Error: Illegal nesting: Only properties may be nested beneath properties. - on line 3 of /home/saper/sw/sass-spec/spec/misc/debug-directive-nested-todo/input.scss + on line 3 of /sass/sass-spec/spec/libsass-todo-tests/warn-directive-nested/inline/input.scss Use --trace for backtrace. diff --git a/spec/libsass-todo-tests/warn-directive-nested/inline/expected_output.css b/spec/libsass-todo-tests/warn-directive-nested/inline/expected_output.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/spec/libsass-todo-tests/warn-directive-nested/inline/input.scss b/spec/libsass-todo-tests/warn-directive-nested/inline/input.scss new file mode 100644 index 0000000000..0a68724856 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/inline/input.scss @@ -0,0 +1,6 @@ +a { + b: { + @warn test; + c: d; + } +} diff --git a/spec/libsass-todo-tests/warn-directive-nested/inline/status b/spec/libsass-todo-tests/warn-directive-nested/inline/status new file mode 100644 index 0000000000..b44fe09a7a --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/inline/status @@ -0,0 +1 @@ +65 \ No newline at end of file diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/error b/spec/libsass-todo-tests/warn-directive-nested/mixin/error new file mode 100644 index 0000000000..cfd24956c7 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/error @@ -0,0 +1,4 @@ +WARNING: test + on line 2 of /sass/sass-spec/spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss, in `c' + from line 8 of /sass/sass-spec/spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss + diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compact.css b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compact.css new file mode 100644 index 0000000000..fc607edb11 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compact.css @@ -0,0 +1 @@ +a { b-c: d; } diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compressed.css b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compressed.css new file mode 100644 index 0000000000..a2c40d2e0a --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.compressed.css @@ -0,0 +1 @@ +a{b-c:d} diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.expanded.css b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.expanded.css new file mode 100644 index 0000000000..f7255d4510 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected.expanded.css @@ -0,0 +1,3 @@ +a { + b-c: d; +} diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/expected_output.css b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected_output.css new file mode 100644 index 0000000000..70564d446a --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/expected_output.css @@ -0,0 +1,2 @@ +a { + b-c: d; } diff --git a/spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss b/spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss new file mode 100644 index 0000000000..9db5638c57 --- /dev/null +++ b/spec/libsass-todo-tests/warn-directive-nested/mixin/input.scss @@ -0,0 +1,10 @@ +@mixin c() { + @warn test; + c: d; +} + +a { + b: { + @include c(); + } +} diff --git a/spec/misc/debug-directive-nested-todo/input.scss b/spec/misc/debug-directive-nested-todo/input.scss deleted file mode 100644 index fa7e3f7f3b..0000000000 --- a/spec/misc/debug-directive-nested-todo/input.scss +++ /dev/null @@ -1,6 +0,0 @@ -a { - margin: { - @debug test; - left: 0px; - } -} diff --git a/spec/misc/error-directive-nested-todo/input.scss b/spec/misc/error-directive-nested-todo/input.scss deleted file mode 100644 index 8a742712f2..0000000000 --- a/spec/misc/error-directive-nested-todo/input.scss +++ /dev/null @@ -1,6 +0,0 @@ -a { - margin: { - @error test; - left: 0px; - } -} diff --git a/spec/misc/warn-directive-nested-todo/input.scss b/spec/misc/warn-directive-nested-todo/input.scss deleted file mode 100644 index 91591f1c8d..0000000000 --- a/spec/misc/warn-directive-nested-todo/input.scss +++ /dev/null @@ -1,6 +0,0 @@ -a { - margin: { - @warn test; - left: 0px; - } -}