2 <script src=
"../../../resources/js-test.js"></script>
6 description('This tests the DOM 4 remove method on a Text node.');
8 var testDiv
= document
.getElementById('test');
9 var text
= document
.createTextNode('text');
10 testDiv
.appendChild(text
);
11 shouldBe('testDiv.childNodes.length', '1');
13 shouldBe('testDiv.childNodes.length', '0');
15 shouldBe('testDiv.childNodes.length', '0');