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

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

Issue 58533003: Move fast/js/resources files to resources. (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="../../../resources/js-test.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 Comment.'); 6 description('This tests the DOM 4 remove method on a Comment.');
7 7
8 var testDiv = document.getElementById('test'); 8 var testDiv = document.getElementById('test');
9 var comment = document.createComment('Comment'); 9 var comment = document.createComment('Comment');
10 testDiv.appendChild(comment); 10 testDiv.appendChild(comment);
11 shouldBe('testDiv.childNodes.length', '1'); 11 shouldBe('testDiv.childNodes.length', '1');
12 comment.remove(); 12 comment.remove();
13 shouldBe('testDiv.childNodes.length', '0'); 13 shouldBe('testDiv.childNodes.length', '0');
14 comment.remove(); 14 comment.remove();
15 shouldBe('testDiv.childNodes.length', '0'); 15 shouldBe('testDiv.childNodes.length', '0');
16 16
17 </script> 17 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Comment/comment-constructor.html ('k') | LayoutTests/fast/dom/DOMException/prototype-object.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698