Check errors in Intentions tests by default
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
// CHECK_ERRORS_AFTER
|
|
||||||
|
|
||||||
fun <T> <caret>T.bar() {
|
fun <T> <caret>T.bar() {
|
||||||
toString()
|
toString()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// CHECK_ERRORS_AFTER
|
|
||||||
|
|
||||||
fun <T> bar(t: T) {
|
fun <T> bar(t: T) {
|
||||||
t.toString()
|
t.toString()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ public abstract class AbstractIntentionTest extends KotlinCodeInsightTestCase {
|
|||||||
|
|
||||||
doTestFor(pathToFile, intentionAction, fileText);
|
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());
|
DirectiveBasedActionUtils.INSTANCE$.checkForUnexpectedErrors((KtFile) getFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user