Runs the test case.
Document doc;
NodeList genderList;
Node gender;
Node entRef;
Node entElement;
Node entElementText;
Text splitNode;
int nodeType;
doc = (Document) load("staff", true);
genderList = doc.getElementsByTagName("gender");
gender = genderList.item(2);
entRef = gender.getFirstChild();
assertNotNull("entRefNotNull", entRef);
nodeType = (int) entRef.getNodeType();
if (equals(1, nodeType)) {
entRef = doc.createEntityReference("ent4");
assertNotNull("createdEntRefNotNull", entRef);
}
entElement = entRef.getFirstChild();
assertNotNull("entElementNotNull", entElement);
entElementText = entElement.getFirstChild();
assertNotNull("entElementTextNotNull", entElementText);
{
boolean success = false;
try {
splitNode = ((Text) /*Node */entElementText).splitText(2);
} catch (DOMException ex) {
success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR);
}
assertTrue("throw_NO_MODIFICATION_ALLOWED_ERR", success);
}