Search in sources :

Example 1 with XmlUnusedNamespaceInspection

use of com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection in project intellij-community by JetBrains.

the class XmlNamespacesTest method testDoNotOptimizeWhenInspectionDisabled.

public void testDoNotOptimizeWhenInspectionDisabled() throws Exception {
    myFixture.disableInspections(new XmlUnusedNamespaceInspection());
    String text = "<all xmlns=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"/>";
    myFixture.configureByText(XmlFileType.INSTANCE, text);
    doOptimizeImportsTest(text);
}
Also used : XmlUnusedNamespaceInspection(com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection)

Example 2 with XmlUnusedNamespaceInspection

use of com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection in project intellij-plugins by JetBrains.

the class FlexHighlightingTest method testUnusedNamespaces.

@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithGumboSdk })
public void testUnusedNamespaces() throws Exception {
    enableInspectionTool(new XmlUnusedNamespaceInspection());
    doTestFor(true, getTestName(false) + ".mxml");
}
Also used : XmlUnusedNamespaceInspection(com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection)

Aggregations

XmlUnusedNamespaceInspection (com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection)2