Skip to content

Commit b4dcb5c

Browse files
committed
Add error spec tests for wrong imports
1 parent fa400ba commit b4dcb5c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+139
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: Import directives may not be used within control directives or mixins.
2+
on line 3 of /sass/sass-spec/spec/errors/import/control-else/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/import/control-else/expected_output.css

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@if (false) {
2+
} @else {
3+
@import '_option1';
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: Import directives may not be used within control directives or mixins.
2+
on line 2 of /sass/sass-spec/spec/errors/import/control-if/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/import/control-if/expected_output.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@if (true) {
2+
@import '_option1';
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: Import directives may not be used within control directives or mixins.
2+
on line 2 of /sass/sass-spec/spec/errors/import/loop/each/input.scss
3+
Use --trace for backtrace.

spec/libsass-todo-tests/errors/import/loop/each/expected_output.css

Whitespace-only changes.

0 commit comments

Comments
 (0)