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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/ChildNode/after.html

Issue 2341673004: [Binding] Replace 'Unscopeable' with 'Unscopable' (Closed)
Patch Set: . Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/ChildNode/before.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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('after' in child); 8 assert_true('after' in child);
9 var after = 'mine'; 9 var after = 'mine';
10 var getAttribute = 'mine'; 10 var getAttribute = 'mine';
11 with (child) { 11 with (child) {
12 assert_true(after === 'mine'); 12 assert_true(after === 'mine');
13 assert_false(getAttribute === 'mine'); 13 assert_false(getAttribute === 'mine');
14 } 14 }
15 assert_true('Symbol' in window); 15 assert_true('Symbol' in window);
16 var unscopables = Object.getPrototypeOf(child)[Symbol.unscopables]; 16 var unscopables = Object.getPrototypeOf(child)[Symbol.unscopables];
17 assert_true(unscopables.after); 17 assert_true(unscopables.after);
18 }, 'ChildNode.after() unscopeable'); 18 }, 'ChildNode.after() unscopable');
19 19
20 function test_after(nodeName) { 20 function test_after(nodeName) {
21 var child; 21 var child;
22 var innerHTML; 22 var innerHTML;
23 if (nodeName == 'Comment') { 23 if (nodeName == 'Comment') {
24 child = document.createComment('test'); 24 child = document.createComment('test');
25 innerHTML = '<!--test-->'; 25 innerHTML = '<!--test-->';
26 } else if (nodeName == 'Element') { 26 } else if (nodeName == 'Element') {
27 child = document.createElement('test'); 27 child = document.createElement('test');
28 innerHTML = '<test></test>'; 28 innerHTML = '<test></test>';
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 assert_equals(parent.firstChild, child); 148 assert_equals(parent.firstChild, child);
149 }, nodeName + '.after() with a Document as an argument should throw.'); 149 }, nodeName + '.after() with a Document as an argument should throw.');
150 } 150 }
151 151
152 test_after('Comment'); 152 test_after('Comment');
153 test_after('Element'); 153 test_after('Element');
154 test_after('Text'); 154 test_after('Text');
155 155
156 </script> 156 </script>
157 </html> 157 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/ChildNode/before.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698