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

Side by Side Diff: third_party/WebKit/LayoutTests/dom/parent_node/append-on-document.html

Issue 2783813003: Move tests for ChildNode and ParentNode to dom/child_node/ and dom/parent_node/. (Closed)
Patch Set: Created 3 years, 8 months 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 5
6 function test_append_on_Document() { 6 function test_append_on_Document() {
7 7
8 var node = document.implementation.createDocument(null, null); 8 var node = document.implementation.createDocument(null, null);
9 test(function() { 9 test(function() {
10 var parent = node.cloneNode(); 10 var parent = node.cloneNode();
11 parent.append(); 11 parent.append();
12 assert_array_equals(parent.childNodes, []); 12 assert_array_equals(parent.childNodes, []);
13 }, 'Document.append() without any argument, on a Document having no child.') ; 13 }, 'Document.append() without any argument, on a Document having no child.') ;
(...skipping 27 matching lines...) Expand all
41 assert_throws('HierarchyRequestError', function() { parent.append(x, y); }); 41 assert_throws('HierarchyRequestError', function() { parent.append(x, y); });
42 assert_array_equals(parent.childNodes, []); 42 assert_array_equals(parent.childNodes, []);
43 }, 'Document.append() with two elements as the argument, on a Document havin g no child.'); 43 }, 'Document.append() with two elements as the argument, on a Document havin g no child.');
44 44
45 } 45 }
46 46
47 test_append_on_Document(); 47 test_append_on_Document();
48 48
49 </script> 49 </script>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698