Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Text / remove.html
blobcf2aae9ae7935b806bd24fda87ca63d35f69f7a1
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="test"></div>
4 <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');
12 text.remove();
13 shouldBe('testDiv.childNodes.length', '0');
14 text.remove();
15 shouldBe('testDiv.childNodes.length', '0');
17 </script>