Skip to content

Commit 6367045

Browse files
committed
Merge pull request #682 from mgreter/tests/invalid-extend-error
More error specs for invalid extends
2 parents 3d73a22 + de27ea3 commit 6367045

38 files changed

+122
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Error: ".baz" failed to @extend "%foo".
2+
The selector "%foo" was not found.
3+
Use "@extend %foo !optional" if the extend should be able to fail.
4+
on line 2 of /sass/sass-spec/spec/errors/extend/placeholder/missing/input.scss
5+
Use --trace for backtrace.

spec/errors/extend/placeholder/missing/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+
.baz {
2+
@extend %foo;
3+
color: green;
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
65
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.baz { color: green; }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.baz{color:green}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.baz {
2+
color: green;
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.baz {
2+
color: green; }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.baz {
2+
@extend %foo !optional;
3+
color: green;
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.baz { color: blue; }
2+
3+
.baz { color: green; }

0 commit comments

Comments
 (0)