Add more error tests from #244

This commit is contained in:
Luke Page
2012-08-12 13:35:55 +01:00
parent 713cbd2002
commit 3e052e5580
6 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1 @@
@import "file-does-not-exist.less";

View File

@@ -0,0 +1,3 @@
FileError: 'file-does-not-exist.less' wasn't found.
in {path}import-missing.less:1:0
1 @import "file-does-not-exist.less";

View File

@@ -0,0 +1,3 @@
.scope {
var: `this.foo.toJS()`;
}

View File

@@ -0,0 +1,4 @@
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot call method 'toJS' of undefined' in {path}javascript-error.less:2:26
1 .scope {
2 var: `this.foo.toJS()`;
3 }

View File

@@ -0,0 +1,2 @@
body {
background-color: #fff;

View File

@@ -0,0 +1,2 @@
ParseError: missing closing `}` in {path}parse-error-missing-bracket.less:3:1
2 background-color: #fff;