Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: LayoutTests/fast/dom/Text/remove.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../js/resources/js-test-pre.js"></script>
3 <div id="test"></div> 3 <div id="test"></div>
4 <script> 4 <script>
5 5
6 description('This tests the DOM 4 remove method on a Text node.'); 6 description('This tests the DOM 4 remove method on a Text node.');
7 7
8 var testDiv = document.getElementById('test'); 8 var testDiv = document.getElementById('test');
9 var text = document.createTextNode('text'); 9 var text = document.createTextNode('text');
10 testDiv.appendChild(text); 10 testDiv.appendChild(text);
11 shouldBe('testDiv.childNodes.length', '1'); 11 shouldBe('testDiv.childNodes.length', '1');
12 text.remove(); 12 text.remove();
13 shouldBe('testDiv.childNodes.length', '0'); 13 shouldBe('testDiv.childNodes.length', '0');
14 text.remove(); 14 text.remove();
15 shouldBe('testDiv.childNodes.length', '0'); 15 shouldBe('testDiv.childNodes.length', '0');
16 16
17 </script> 17 </script>
18 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Text/previous-element-sibling.html ('k') | LayoutTests/fast/dom/Text/replaceWholeText.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698