Check errors in Intentions tests by default

This commit is contained in:
Natalia Ukhorskaya
2015-12-16 14:21:23 +03:00
parent cc259c2d15
commit 78d737f3f4
3 changed files with 1 additions and 5 deletions
@@ -1,5 +1,3 @@
// CHECK_ERRORS_AFTER
fun <T> <caret>T.bar() {
toString()
}
@@ -1,5 +1,3 @@
// CHECK_ERRORS_AFTER
fun <T> bar(t: T) {
t.toString()
}
@@ -126,7 +126,7 @@ public abstract class AbstractIntentionTest extends KotlinCodeInsightTestCase {
doTestFor(pathToFile, intentionAction, fileText);
if (InTextDirectivesUtils.isDirectiveDefined(fileText, "// CHECK_ERRORS_AFTER")) {
if (getFile() instanceof KtFile && !InTextDirectivesUtils.isDirectiveDefined(fileText, "// SKIP_ERRORS_AFTER")) {
DirectiveBasedActionUtils.INSTANCE$.checkForUnexpectedErrors((KtFile) getFile());
}
}