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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/focus-method-with-delegatesFocus.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/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <template id="ShadowTemplate"> 3 <template id="ShadowTemplate">
4 <ul> 4 <ul>
5 <li tabindex="0" id="one">One</li> 5 <li tabindex="0" id="one">One</li>
6 <li tabindex="0" id="two">Two</li> 6 <li tabindex="0" id="two">Two</li>
7 <li id="three">Three</li> 7 <li id="three">Three</li>
8 </ul> 8 </ul>
9 </template> 9 </template>
10 <template id="NoFocusableShadowTemplate"> 10 <template id="NoFocusableShadowTemplate">
11 <ul> 11 <ul>
12 <li id="one">One</li> 12 <li id="one">One</li>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 debug('If any element including shadow host is not focusable, focus doesn\'t cha nge.'); 76 debug('If any element including shadow host is not focusable, focus doesn\'t cha nge.');
77 xshadow3.focus(); 77 xshadow3.focus();
78 shouldBeEqualToString('document.activeElement.id', 'input0'); 78 shouldBeEqualToString('document.activeElement.id', 'input0');
79 79
80 debug('If no element is focusable within shadow root, but the shadow host is foc usable, then the host gets focus regardless of delegatesFocus.'); 80 debug('If no element is focusable within shadow root, but the shadow host is foc usable, then the host gets focus regardless of delegatesFocus.');
81 xshadow4.focus(); 81 xshadow4.focus();
82 shouldBeEqualToString('document.activeElement.id', 'xshadow4'); 82 shouldBeEqualToString('document.activeElement.id', 'xshadow4');
83 xshadow5.focus(); 83 xshadow5.focus();
84 shouldBeEqualToString('document.activeElement.id', 'xshadow5'); 84 shouldBeEqualToString('document.activeElement.id', 'xshadow5');
85 </script> 85 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698