OLD | NEW |
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 Loading... |
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> |
OLD | NEW |