convert test to PyLightFixtureTestCase

This commit is contained in:
Dmitry Jemerov
2009-12-24 16:52:34 +03:00
parent 6d7ab288f6
commit 408bc8b2f3

View File

@@ -1,11 +1,11 @@
package com.jetbrains.python;
import com.intellij.codeInsight.daemon.DaemonAnalyzerTestCase;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.editor.markup.EffectType;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.jetbrains.python.fixtures.PyLightFixtureTestCase;
import org.jetbrains.annotations.NonNls;
import java.awt.*;
@@ -14,7 +14,7 @@ import java.awt.*;
* Test highlighting added by annotators.
* @author yole
*/
public class PythonHighlightingTest extends DaemonAnalyzerTestCase {
public class PythonHighlightingTest extends PyLightFixtureTestCase {
@NonNls
protected String getTestDataPath() {
return PythonTestUtil.getTestDataPath() + "/highlighting/";
@@ -101,11 +101,11 @@ public class PythonHighlightingTest extends DaemonAnalyzerTestCase {
}
private void doTest() throws Exception {
doTest(getTestName(true) + PyNames.DOT_PY, true, true);
myFixture.testHighlighting(true, true, false, getTestName(true) + PyNames.DOT_PY);
}
private void doTest(boolean checkWarnings, boolean checkInfos) throws Exception {
doTest(getTestName(true) + PyNames.DOT_PY, checkWarnings, checkInfos);
myFixture.testHighlighting(checkWarnings, checkInfos, false, getTestName(true) + PyNames.DOT_PY);
}
}