Search in sources :

Example 1 with XmlWrongRootElementInspection

use of com.intellij.codeInspection.htmlInspections.XmlWrongRootElementInspection in project intellij-community by JetBrains.

the class XmlHighlightingTest method testChangeRootElement.

public void testChangeRootElement() throws Exception {
    enableInspectionTool(new XmlWrongRootElementInspection());
    final String testName = getTestName(false);
    configureByFile(BASE_PATH + testName + ".xml");
    Collection<HighlightInfo> infos = doDoTest(true, false);
    findAndInvokeIntentionAction(infos, "Change root tag name to xxx", myEditor, myFile);
    checkResultByFile(BASE_PATH + testName + "_after.xml");
}
Also used : XmlWrongRootElementInspection(com.intellij.codeInspection.htmlInspections.XmlWrongRootElementInspection) HighlightInfo(com.intellij.codeInsight.daemon.impl.HighlightInfo)

Aggregations

HighlightInfo (com.intellij.codeInsight.daemon.impl.HighlightInfo)1 XmlWrongRootElementInspection (com.intellij.codeInspection.htmlInspections.XmlWrongRootElementInspection)1