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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/event-path-with-slot.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 <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 src='resources/shadow-dom.js'></script> 4 <script src='../fast/dom/shadow/resources/shadow-dom.js'></script>
5 <div id='host1'> 5 <div id='host1'>
6 <input id='input1' slot='slot1'> 6 <input id='input1' slot='slot1'>
7 <template data-mode='open'> 7 <template data-mode='open'>
8 <slot name='slot1'></slot> 8 <slot name='slot1'></slot>
9 </template> 9 </template>
10 </div> 10 </div>
11 11
12 <div id='host2'> 12 <div id='host2'>
13 <input id='input2' slot='slot2'> 13 <input id='input2' slot='slot2'>
14 <template data-mode='open'> 14 <template data-mode='open'>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 var input3 = document.getElementById('input3') 75 var input3 = document.getElementById('input3')
76 var inputParent = document.getElementById('input-parent'); 76 var inputParent = document.getElementById('input-parent');
77 input3.onfocus = function(e) { 77 input3.onfocus = function(e) {
78 var expected_array3 = [input3, inputParent, slot3, shadowRoot2, host4, docum ent.body, document.documentElement, document, window]; 78 var expected_array3 = [input3, inputParent, slot3, shadowRoot2, host4, docum ent.body, document.documentElement, document, window];
79 assert_array_equals(e.path, expected_array3); 79 assert_array_equals(e.path, expected_array3);
80 }; 80 };
81 input3.focus(); 81 input3.focus();
82 }, 'EventPath works fine when event happens to a descendant of a slotted element .'); 82 }, 'EventPath works fine when event happens to a descendant of a slotted element .');
83 83
84 </script> 84 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698