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

Side by Side Diff: third_party/WebKit/LayoutTests/dom/child_node/replace-with.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 test(function () { 6 test(function () {
7 var child = document.createElement('p'); 7 var child = document.createElement('p');
8 assert_true('replaceWith' in child); 8 assert_true('replaceWith' in child);
9 var replaceWith = 'mine'; 9 var replaceWith = 'mine';
10 var getAttribute = 'mine'; 10 var getAttribute = 'mine';
11 with (child) { 11 with (child) {
12 assert_true(replaceWith === 'mine'); 12 assert_true(replaceWith === 'mine');
13 assert_false(getAttribute === 'mine'); 13 assert_false(getAttribute === 'mine');
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 assert_equals(parent.firstChild, child); 133 assert_equals(parent.firstChild, child);
134 }, nodeName + '.replaceWith() with a Document as an argument should throw.') ; 134 }, nodeName + '.replaceWith() with a Document as an argument should throw.') ;
135 } 135 }
136 136
137 test_replaceWith('Comment'); 137 test_replaceWith('Comment');
138 test_replaceWith('Element'); 138 test_replaceWith('Element');
139 test_replaceWith('Text'); 139 test_replaceWith('Text');
140 140
141 </script> 141 </script>
142 </html> 142 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/dom/child_node/before.html ('k') | third_party/WebKit/LayoutTests/dom/parent_node/append.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698