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);
}
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");
}
Aggregations