|
|
@@ -19,7 +19,9 @@ import java.net.URISyntaxException; |
|
|
|
import java.net.URL; |
|
|
|
import java.util.Collection; |
|
|
|
|
|
|
|
import org.junit.Assert; |
|
|
|
import org.junit.runner.RunWith; |
|
|
|
import org.w3c.css.sac.CSSException; |
|
|
|
|
|
|
|
import com.vaadin.sass.testcases.scss.SassTestRunner.TestFactory; |
|
|
|
|
|
|
@@ -47,4 +49,22 @@ public class SassLangTestsBroken extends AbstractDirectoryScanningSassTests { |
|
|
|
return getScssResourceNames(getResourceURLInternal("")); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void compareScssWithCss(String scssResourceName) throws Exception { |
|
|
|
boolean success = false; |
|
|
|
try { |
|
|
|
super.compareScssWithCss(scssResourceName); |
|
|
|
success = true; |
|
|
|
} catch (CSSException e) { |
|
|
|
// this is an expected outcome |
|
|
|
} catch (AssertionError e) { |
|
|
|
// this is an expected outcome |
|
|
|
} |
|
|
|
if (success) { |
|
|
|
Assert.fail("Test " |
|
|
|
+ scssResourceName |
|
|
|
+ " from sasslangbroken that was expected to fail has been fixed. Please move the corresponding CSS and SCSS files to sasslang."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |