1description("Test wholeText and replaceWholeText") 2 3var para = document.createElement('p'); 4para.appendChild(document.createTextNode('A')); 5var textB = document.createTextNode('B'); 6para.appendChild(textB); 7para.appendChild(document.createElement('p')); 8para.appendChild(document.createTextNode('C')); 9 10shouldBe("textB.wholeText", "'AB'"); 11shouldBe("para.textContent", "'ABC'"); 12textB.replaceWholeText("XYZ"); 13shouldBe("textB.wholeText", "'XYZ'"); 14shouldBe("para.textContent", "'XYZC'"); 15 16var successfullyParsed = true; 17