mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CustomFileTypeCompletionTest -> community
This commit is contained in:
@@ -0,0 +1 @@
|
||||
cont<caret>
|
||||
@@ -0,0 +1 @@
|
||||
continue<caret>
|
||||
@@ -0,0 +1,3 @@
|
||||
if (true) {
|
||||
whi<caret>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
if (true) {
|
||||
while<caret>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
ca<caret>
|
||||
@@ -0,0 +1,2 @@
|
||||
whiwhiwhi
|
||||
whi<caret>
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.intellij.codeInsight.completion;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: Maxim.Mossienko
|
||||
* Date: Oct 14, 2004
|
||||
* Time: 4:39:37 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class CustomFileTypeCompletionTest extends LightCompletionTestCase {
|
||||
private static final String BASE_PATH = "/codeInsight/completion/customFileType/";
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return JavaTestUtil.getJavaTestDataPath();
|
||||
}
|
||||
|
||||
public void testKeyWordCompletion() throws Exception {
|
||||
configureByFile(BASE_PATH + "1.cs");
|
||||
checkResultByFile(BASE_PATH + "1_after.cs");
|
||||
|
||||
configureByFile(BASE_PATH + "2.cs");
|
||||
checkResultByFile(BASE_PATH + "2_after.cs");
|
||||
}
|
||||
|
||||
public void testWordCompletion() throws Throwable {
|
||||
configureByFile(BASE_PATH + "WordCompletion.cs");
|
||||
testByCount(2, "while", "whiwhiwhi");
|
||||
}
|
||||
|
||||
public void testErlang() throws Throwable {
|
||||
configureByFile(BASE_PATH + "Erlang.erl");
|
||||
testByCount(2, "case", "catch");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user