Search in sources :

Example 1 with SpellCheckingInspection

use of com.intellij.spellchecker.inspections.SpellCheckingInspection in project intellij-community by JetBrains.

the class SpellCheckingEditorCustomizationTest method doTest.

private void doTest(boolean enabled, String document) {
    InspectionProfileImpl.INIT_INSPECTIONS = true;
    try {
        myFixture.configureByText(PlainTextFileType.INSTANCE, document);
        myFixture.enableInspections(new SpellCheckingInspection());
        EditorCustomization customization = SpellCheckingEditorCustomizationProvider.getInstance().getCustomization(enabled);
        assertNotNull(customization);
        customization.customize((EditorEx) myFixture.getEditor());
        myFixture.checkHighlighting();
    } finally {
        InspectionProfileImpl.INIT_INSPECTIONS = false;
    }
}
Also used : SpellCheckingInspection(com.intellij.spellchecker.inspections.SpellCheckingInspection) EditorCustomization(com.intellij.ui.EditorCustomization)

Example 2 with SpellCheckingInspection

use of com.intellij.spellchecker.inspections.SpellCheckingInspection in project android by JetBrains.

the class AndroidColorsTest method testColorNoTypos.

public void testColorNoTypos() throws Throwable {
    VirtualFile virtualFile = copyFileToProject("colors_value.xml");
    myFixture.configureFromExistingVirtualFile(virtualFile);
    myFixture.enableInspections(new SpellCheckingInspection());
    myFixture.checkHighlighting(true, true, true);
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) SpellCheckingInspection(com.intellij.spellchecker.inspections.SpellCheckingInspection)

Example 3 with SpellCheckingInspection

use of com.intellij.spellchecker.inspections.SpellCheckingInspection in project intellij-plugins by JetBrains.

the class ActionScriptHighlightingTest method testSpellChecker.

public void testSpellChecker() throws Exception {
    enableInspectionTool(new SpellCheckingInspection());
    doSimpleHighlightingWithInvokeFixAndCheckResult("Typo: Rename to...");
}
Also used : SpellCheckingInspection(com.intellij.spellchecker.inspections.SpellCheckingInspection)

Example 4 with SpellCheckingInspection

use of com.intellij.spellchecker.inspections.SpellCheckingInspection in project intellij-plugins by JetBrains.

the class MarkdownSpellcheckerTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    myFixture.enableInspections(new SpellCheckingInspection());
}
Also used : SpellCheckingInspection(com.intellij.spellchecker.inspections.SpellCheckingInspection)

Example 5 with SpellCheckingInspection

use of com.intellij.spellchecker.inspections.SpellCheckingInspection in project go-lang-idea-plugin by go-lang-plugin-org.

the class GoSpellcheckingTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    myFixture.enableInspections(new SpellCheckingInspection());
}
Also used : SpellCheckingInspection(com.intellij.spellchecker.inspections.SpellCheckingInspection)

Aggregations

SpellCheckingInspection (com.intellij.spellchecker.inspections.SpellCheckingInspection)8 HighlightInfo (com.intellij.codeInsight.daemon.impl.HighlightInfo)1 LookupElement (com.intellij.codeInsight.lookup.LookupElement)1 LookupEx (com.intellij.codeInsight.lookup.LookupEx)1 LookupImpl (com.intellij.codeInsight.lookup.impl.LookupImpl)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 ExpectedHighlightingData (com.intellij.testFramework.ExpectedHighlightingData)1 EditorCustomization (com.intellij.ui.EditorCustomization)1