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