public void setNodeValue(String nodeValue) throws DOMException{ setDirty(); textRep.setNodeValue(nodeValue); }
public void setNodeValue(String nodeValue) throws DOMException{ setDirty(); textRep.setNodeValue(nodeValue); }
public void setNodeValue(String nodeValue) throws DOMException{ setDirty(); textRep.setNodeValue(nodeValue); }
newElementText.setNodeValue(value);
newElementText.setNodeValue(value);
newElementText.setNodeValue(value);
newElementText.setNodeValue(value);
fieldentryText.setNodeValue(setValue);
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; String childValue; doc = (Document) load("staff", true); elementList = doc.getElementsByTagName("name"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.setNodeValue("Marilyn Martin"); childData = child.getData(); assertEquals("data", "Marilyn Martin", childData); childValue = child.getNodeValue(); assertEquals("value", "Marilyn Martin", childValue); } /**
fieldentryText.setNodeValue(setValue);
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; CharacterData child; String childData; String childValue; doc = (Document) load("hc_staff", true); elementList = doc.getElementsByTagName("strong"); nameNode = elementList.item(0); child = (CharacterData) nameNode.getFirstChild(); child.setNodeValue("Marilyn Martin"); childData = child.getData(); assertEquals("data", "Marilyn Martin", childData); childValue = child.getNodeValue(); assertEquals("value", "Marilyn Martin", childValue); } /**
entElementText.setNodeValue("newValue"); } catch (DOMException ex) { success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR);
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; EntityReference entRef; CharacterData entText; doc = (Document) load("staff", true); entRef = doc.createEntityReference("ent3"); assertNotNull("createdEntRefNotNull", entRef); entText = (CharacterData) entRef.getFirstChild(); assertNotNull("entTextNotNull", entText); { boolean success = false; try { entText.setNodeValue("newValue"); } catch (DOMException ex) { success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR); } assertTrue("throw_NO_MODIFICATION_ALLOWED_ERR", success); } } /**