public void testNodeDocumentFragmentNormalize1() throws Throwable {
  Document doc;
  DocumentFragment docFragment;
  String nodeValue;
  Text txtNode;
  Node retval;
  doc=(Document)load("hc_staff",builder);
  docFragment=doc.createDocumentFragment();
  txtNode=doc.createTextNode("foo");
  retval=docFragment.appendChild(txtNode);
  txtNode=doc.createTextNode("bar");
  retval=docFragment.appendChild(txtNode);
  docFragment.normalize();
  txtNode=(Text)docFragment.getFirstChild();
  nodeValue=txtNode.getNodeValue();
  assertEquals("normalizedNodeValue","foobar",nodeValue);
  retval=txtNode.getNextSibling();
  assertNull("singleChild",retval);
}

public void testNodeDocumentFragmentNormalize1 ( ) throws Throwable { Document doc ; DocumentFragment docFragment ; String nodeValue ; Text txtNode ; Node retval ; doc = ( Document ) load ( "hc_staff" , builder ) ; docFragment = doc . createDocumentFragment ( ) ; txtNode = doc . createTextNode ( "foo" ) ; retval = docFragment . appendChild ( txtNode ) ; txtNode = doc . createTextNode ( "bar" ) ; retval = docFragment . appendChild ( txtNode ) ; docFragment . normalize ( ) ; txtNode = ( Text ) docFragment . getFirstChild ( ) ; nodeValue = txtNode . getNodeValue ( ) ; assertEquals ( "normalizedNodeValue" , "foobar" , nodeValue ) ; retval = txtNode . getNextSibling ( ) ; assertNull ( "singleChild" , retval ) ; }
runs the test case .
