mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
38 lines
1.0 KiB
Java
38 lines
1.0 KiB
Java
package com.jetbrains.rest.completion;
|
|
|
|
import com.intellij.codeInsight.lookup.LookupElement;
|
|
import com.jetbrains.rest.fixtures.RestFixtureTestCase;
|
|
|
|
/**
|
|
* User : catherine
|
|
*/
|
|
public class RestOptionCompletionTest extends RestFixtureTestCase {
|
|
|
|
public void testFootnote() {
|
|
final String filePath = "/completion/option/footnote.rst";
|
|
myFixture.configureByFiles(filePath);
|
|
final LookupElement[] items = myFixture.completeBasic();
|
|
assertNotNull(items);
|
|
assertEquals(0, items.length);
|
|
}
|
|
|
|
public void testImage() {
|
|
doTest();
|
|
}
|
|
|
|
public void testOutsideDirective() {
|
|
final String filePath = "/completion/option/outside.rst";
|
|
myFixture.configureByFiles(filePath);
|
|
final LookupElement[] items = myFixture.completeBasic();
|
|
assertNotNull(items);
|
|
assertEquals(0, items.length);
|
|
}
|
|
|
|
private void doTest() {
|
|
final String path = "/completion/option/" + getTestName(true);
|
|
myFixture.configureByFile(path + ".rst");
|
|
myFixture.completeBasic();
|
|
myFixture.checkResultByFile(path + ".after.rst");
|
|
}
|
|
}
|