Runs the test case.
Document doc;
Node refChild;
Node newChild;
NodeList elementList;
Node elementNode;
Node insertedNode;
doc = (Document) load("staff", true);
newChild = doc.createElement("newChild");
refChild = doc.createElement("refChild");
elementList = doc.getElementsByTagName("employee");
elementNode = elementList.item(1);
{
boolean success = false;
try {
insertedNode = elementNode.insertBefore(newChild, refChild);
} catch (DOMException ex) {
success = (ex.code == DOMException.NOT_FOUND_ERR);
}
assertTrue("throw_NOT_FOUND_ERR", success);
}