Skip to content

Commit

Permalink
Added test class and errors test for #186
Browse files Browse the repository at this point in the history
  • Loading branch information
meri committed Apr 9, 2014
1 parent d0d1d99 commit 0a26982
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
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);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO
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;
};
}

0 comments on commit 0a26982

Please sign in to comment.