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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/radionodelist-in-shadow.html

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 <body> 2 <body>
3 <script src="../../../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var host = document.createElement('div'); 8 var host = document.createElement('div');
9 var root = host.attachShadow({mode: 'open'}); 9 var root = host.attachShadow({mode: 'open'});
10 root.innerHTML = '<form id="f1"><input name="n"><select name="n"></select></ form>'; 10 root.innerHTML = '<form id="f1"><input name="n"><select name="n"></select></ form>';
11 assert_equals(root.firstChild.elements.n.length, 2); 11 assert_equals(root.firstChild.elements.n.length, 2);
12 assert_equals(root.firstChild.n.length, 2); 12 assert_equals(root.firstChild.n.length, 2);
13 13
14 document.body.appendChild(host); 14 document.body.appendChild(host);
15 assert_equals(root.firstChild.elements.n.length, 2); 15 assert_equals(root.firstChild.elements.n.length, 2);
16 assert_equals(root.firstChild.n.length, 2); 16 assert_equals(root.firstChild.n.length, 2);
17 }, 'RadioNodeList should work in Shadow DOM.'); 17 }, 'RadioNodeList should work in Shadow DOM.');
18 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698