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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/nodetree-radio-node-list.html

Issue 2074393002: Clean up shadow-dom layout tests so that they are well organized (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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