mirror of
https://github.com/less/less.js.git
synced 2026-01-15 02:08:18 -05:00
Added tests for #2124
This commit is contained in:
12
test/css/no-strict-math/no-sm-operations.css
Normal file
12
test/css/no-strict-math/no-sm-operations.css
Normal file
@@ -0,0 +1,12 @@
|
||||
.named-colors-in-expressions {
|
||||
color-0: 0 -red;
|
||||
color-1: #000101;
|
||||
color-2: #ff0000;
|
||||
color-3: #ff0000;
|
||||
}
|
||||
.named-colors-in-expressions-bar-red {
|
||||
x: y;
|
||||
}
|
||||
.named-colors-in-expressions-barred {
|
||||
a: a;
|
||||
}
|
||||
@@ -52,6 +52,7 @@ lessTester.runTestSet({plugin: 'test/plugins/postprocess/'}, "postProcessorPlugi
|
||||
lessTester.runTestSet({plugin: 'test/plugins/preprocess/'}, "preProcessorPlugin/");
|
||||
lessTester.runTestSet({plugin: 'test/plugins/visitor/'}, "visitorPlugin/");
|
||||
lessTester.runTestSet({plugin: 'test/plugins/filemanager/'}, "filemanagerPlugin/");
|
||||
lessTester.runTestSet({}, "no-strict-math/");
|
||||
lessTester.testSyncronous({syncImport: true}, "import");
|
||||
lessTester.testSyncronous({syncImport: true}, "css");
|
||||
lessTester.testNoOptions();
|
||||
|
||||
10
test/less/no-strict-math/no-sm-operations.less
Normal file
10
test/less/no-strict-math/no-sm-operations.less
Normal file
@@ -0,0 +1,10 @@
|
||||
.named-colors-in-expressions {
|
||||
color-0: 0 -red;
|
||||
color-1: 1 - red;
|
||||
color-2: red * 2;
|
||||
color-3: 2 * red;
|
||||
@3: -red;
|
||||
&-bar@{3} {x: y}
|
||||
@color: red;
|
||||
&-bar@{color} {a: a}
|
||||
}
|
||||
Reference in New Issue
Block a user