use of com.intellij.util.xml.events.DomEvent in project intellij-community by JetBrains.
the class SimpleValuesIncrementalUpdateTest method testAttrXmlEmptyUri.
public void testAttrXmlEmptyUri() throws Throwable {
final MyElement element = createElement("<a xmlns=\"foo\"><ns-child attr=\"239\"/></a>", MyElement.class);
getDomManager().getDomFileDescription(element.getXmlElement()).registerNamespacePolicy("foo", "foo");
final GenericAttributeValue<String> attr = element.getNsChild().getAttr();
attr.getXmlTag().setAttribute("attr", "42");
putExpected(new DomEvent(element.getNsChild(), false));
assertResultsAndClear();
}
use of com.intellij.util.xml.events.DomEvent in project intellij-community by JetBrains.
the class IncrementalUpdateEventsTest method testRemove3.
public void testRemove3() {
deleteTag(3);
putExpected(new DomEvent(myElement, false));
assertResultsAndClear();
}
use of com.intellij.util.xml.events.DomEvent in project intellij-community by JetBrains.
the class IncrementalUpdateEventsTest method testAdd2.
public void testAdd2() {
addChildElementTag(2);
putExpected(new DomEvent(myElement, false));
assertResultsAndClear();
}
use of com.intellij.util.xml.events.DomEvent in project intellij-community by JetBrains.
the class IncrementalUpdateEventsTest method testAdd3.
public void testAdd3() {
addChildElementTag(3);
putExpected(new DomEvent(myElement, false));
assertResultsAndClear();
}
use of com.intellij.util.xml.events.DomEvent in project intellij-community by JetBrains.
the class IncrementalUpdateEventsTest method testAdd4.
public void testAdd4() {
final XmlTag tag = myElement.getXmlTag();
tag.addAfter(createTag("<child-element/>"), tag.getSubTags()[3]);
putExpected(new DomEvent(myElement, false));
assertResultsAndClear();
}
Aggregations