From 41ec5724dff77774f8f250c107ba27bce8392da2 Mon Sep 17 00:00:00 2001 From: Alexander Kirillin Date: Tue, 7 May 2013 20:15:20 +0400 Subject: [PATCH] new directive for disabling of error checks in quick fix tests --- .../jetbrains/jet/plugin/quickfix/QuickFixActionsUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idea/tests/org/jetbrains/jet/plugin/quickfix/QuickFixActionsUtils.java b/idea/tests/org/jetbrains/jet/plugin/quickfix/QuickFixActionsUtils.java index 751f34b3367..4943d86c013 100644 --- a/idea/tests/org/jetbrains/jet/plugin/quickfix/QuickFixActionsUtils.java +++ b/idea/tests/org/jetbrains/jet/plugin/quickfix/QuickFixActionsUtils.java @@ -41,6 +41,10 @@ public class QuickFixActionsUtils { } public static void checkForUnexpectedErrors(JetFile file) { + if (!InTextDirectivesUtils.findLinesWithPrefixesRemoved(file.getText(), "// DISABLE-ERRORS").isEmpty()) { + return; + } + AnalyzeExhaust exhaust = WholeProjectAnalyzerFacade.analyzeProjectWithCacheOnAFile(file); Collection diagnostics = exhaust.getBindingContext().getDiagnostics();