提交 f0b70955 编写于 作者: E Evgeny Gerashchenko

Added restoring global state after NamesHighlightingTest.

上级 5dcd6abc
...@@ -23,7 +23,7 @@ import org.jetbrains.jet.plugin.highlighter.JetPsiChecker; ...@@ -23,7 +23,7 @@ import org.jetbrains.jet.plugin.highlighter.JetPsiChecker;
* @author Evgeny Gerashchenko * @author Evgeny Gerashchenko
* @since 4/4/12 * @since 4/4/12
*/ */
public class JetNamesHighlightingTest extends LightDaemonAnalyzerTestCase { public class NamesHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testTypesAndAnnotations() throws Exception { public void testTypesAndAnnotations() throws Exception {
doTest(); doTest();
} }
...@@ -41,10 +41,21 @@ public class JetNamesHighlightingTest extends LightDaemonAnalyzerTestCase { ...@@ -41,10 +41,21 @@ public class JetNamesHighlightingTest extends LightDaemonAnalyzerTestCase {
} }
private void doTest() throws Exception { private void doTest() throws Exception {
JetPsiChecker.setNamesHighlightingTest(true);
doTest(getTestName(false) + ".kt", false, true); doTest(getTestName(false) + ".kt", false, true);
} }
@Override
public void setUp() throws Exception {
super.setUp();
JetPsiChecker.setNamesHighlightingTest(true);
}
@Override
public void tearDown() throws Exception {
JetPsiChecker.setNamesHighlightingTest(false);
super.tearDown();
}
@Override @Override
protected String getTestDataPath() { protected String getTestDataPath() {
return PluginTestCaseBase.getTestDataPathBase() + "/highlighter/"; return PluginTestCaseBase.getTestDataPathBase() + "/highlighter/";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册