-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test class and errors test for #186
- Loading branch information
meri
committed
Apr 9, 2014
1 parent
d0d1d99
commit 0a26982
Showing
5 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/test/java/com/github/sommeri/less4j/compiler/DetachedRulesetsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.sommeri.less4j.compiler; | ||
|
||
import java.io.File; | ||
import java.util.Collection; | ||
|
||
import org.junit.Ignore; | ||
import org.junit.runners.Parameterized.Parameters; | ||
|
||
@Ignore | ||
public class DetachedRulesetsTest extends BasicFeaturesTest { | ||
|
||
private static final String standardCases = "src/test/resources/compile-basic-features/detached-rulesets/"; | ||
|
||
public DetachedRulesetsTest(File inputFile, File outputFile, File errorList, File mapdataFile, String testName) { | ||
super(inputFile, outputFile, errorList, mapdataFile, testName); | ||
} | ||
|
||
@Parameters(name="Less: {4}") | ||
public static Collection<Object[]> allTestsParameters() { | ||
return createTestFileUtils().loadTestFiles(standardCases); | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
src/test/resources/compile-basic-features/detached-rulesets/detached-rulesets-errors.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO |
1 change: 1 addition & 0 deletions
1
src/test/resources/compile-basic-features/detached-rulesets/detached-rulesets-errors.err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TODO |
36 changes: 36 additions & 0 deletions
36
src/test/resources/compile-basic-features/detached-rulesets/detached-rulesets-errors.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@a: { | ||
b: 1; | ||
}; | ||
//less.js detached-ruleset-1.less | ||
.call-without-parentheses { | ||
@a; | ||
} | ||
|
||
//less.js detached-ruleset-2.less | ||
.detached-as-property-value { | ||
a: @a(); | ||
} | ||
|
||
//less.js detached-ruleset-3.less | ||
.brings-property-on-top {} | ||
@a(); | ||
|
||
//less.js detached-ruleset-4.less | ||
.warning-for-default(@a: { | ||
b: 1; | ||
}) { | ||
@a(); //warning shall be enough for this one | ||
} | ||
|
||
//less.js detached-ruleset-5.less | ||
.mixin-variable-does-not-exists(@b) { | ||
@a(); | ||
} | ||
.mixin-variable-does-not-exists({color: red;}); | ||
|
||
//less.js detached-ruleset-6.less | ||
.variable-declaration-symbol-missing { | ||
b: { | ||
color: red; | ||
}; | ||
} |
Empty file.