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

Side by Side Diff: third_party/WebKit/LayoutTests/dom/child_node/before.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('before' in child); 8 assert_true('before' in child);
9 var before = 'mine'; 9 var before = 'mine';
10 var getAttribute = 'mine'; 10 var getAttribute = 'mine';
11 with (child) { 11 with (child) {
12 assert_true(before === 'mine'); 12 assert_true(before === 'mine');
13 assert_false(getAttribute === 'mine'); 13 assert_false(getAttribute === 'mine');
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 assert_equals(parent.firstChild, child); 148 assert_equals(parent.firstChild, child);
149 }, nodeName + '.before() with a Document as an argument should throw.'); 149 }, nodeName + '.before() with a Document as an argument should throw.');
150 } 150 }
151 151
152 test_before('Comment'); 152 test_before('Comment');
153 test_before('Element'); 153 test_before('Element');
154 test_before('Text'); 154 test_before('Text');
155 155
156 </script> 156 </script>
157 </html> 157 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698