Skip to content

Commit

Permalink
Test @error and @warn
Browse files Browse the repository at this point in the history
Please note that @warn test has both an error
output and normal output, and Sass compiler
does not report failure (no "status" file).
  • Loading branch information
saper committed Sep 21, 2015
1 parent a54eb4b commit f77d9b8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/misc/error-directive/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Buckle your seatbelt Dorothy, 'cause Kansas is going bye-bye
on line 1 of /home/saper/sw/libsass/sass-spec/spec/misc/error-directive/input.scss
Use --trace for backtrace.
Empty file.
1 change: 1 addition & 0 deletions spec/misc/error-directive/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@error "Buckle your seatbelt Dorothy, 'cause Kansas is going bye-bye"
1 change: 1 addition & 0 deletions spec/misc/error-directive/status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
3 changes: 3 additions & 0 deletions spec/misc/warn-directive/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WARNING: Don't crash the ambulance, whatever you do
on line 2 of /home/saper/sw/libsass/sass-spec/spec/misc/warn-directive/input.scss

2 changes: 2 additions & 0 deletions spec/misc/warn-directive/expected_output.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
h1 {
color: blue; }
2 changes: 2 additions & 0 deletions spec/misc/warn-directive/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
h1 { color: blue; }
@warn "Don't crash the ambulance, whatever you do"

0 comments on commit f77d9b8

Please sign in to comment.