mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remove senseless but brittle test
The test checks that postfix template is NOT expanded by enter if an abbreviation was typed fast and completion lookup was not appeared before pressing Enter. However, there is nothing wrong in expanding template if lookup was fast enough to appear before pressing Enter. The second test should be kept, as it checks that Postfix template is expanded no matter is there lookup with template in it or not.
This commit is contained in:
+4
-12
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -150,11 +150,9 @@ public class TemplatesCompletionTest extends CompletionAutoPopupTestCase {
|
||||
}
|
||||
|
||||
public void testQuickTypingWithTab() {
|
||||
doQuickTypingTest("par", '\t');
|
||||
}
|
||||
|
||||
public void testQuickTypingWithEnter() {
|
||||
doQuickTypingTest("par", '\n');
|
||||
configureByFile();
|
||||
myFixture.type("par\t");
|
||||
checkResultByFile();
|
||||
}
|
||||
|
||||
public void testDoNotShowDisabledTemplate() {
|
||||
@@ -209,12 +207,6 @@ public class TemplatesCompletionTest extends CompletionAutoPopupTestCase {
|
||||
return JavaTestUtil.getRelativeJavaTestDataPath() + "/codeInsight/template/postfix/completion";
|
||||
}
|
||||
|
||||
private void doQuickTypingTest(String textToType, char c) {
|
||||
configureByFile();
|
||||
myFixture.type(textToType + c);
|
||||
checkResultByFile();
|
||||
}
|
||||
|
||||
private void doCompleteTest(String textToType, char c) {
|
||||
configureByFile();
|
||||
type(textToType);
|
||||
|
||||
Reference in New Issue
Block a user