Fixed line/column numbers in math expr/ops error messages. Updated tests.

This commit is contained in:
seven-phases-max
2013-12-05 10:56:20 +04:00
parent 167e802875
commit ba5c8189cd
4 changed files with 18 additions and 6 deletions

View File

@@ -1,2 +1,4 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line null, column 0:
1 error: (1px + 3em);
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line 2, column 3:
1 .a {
2 error: (1px + 3em);
3 }

View File

@@ -1,2 +1,4 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line null, column 0:
1 error: ((1px * 2px) + (3em * 3px));
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line 2, column 3:
1 .a {
2 error: ((1px * 2px) + (3em * 3px));
3 }

View File

@@ -1,2 +1,4 @@
OperationError: Can't substract or divide a color from a number in {path}color-operation-error.less on line null, column 0:
1 prop: (3 / #fff);
OperationError: Can't substract or divide a color from a number in {path}color-operation-error.less on line 2, column 3:
1 .a {
2 prop: (3 / #fff);
3 }