| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <p>This tests TAB focus navigation with tabStop property on elements</p> | 8 <p>This tests TAB focus navigation with tabStop property on elements</p> |
| 9 <pre id="console"></pre> | 9 <pre id="console"></pre> |
| 10 <script> | 10 <script> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // 'host-div', // should skip host when tabStop = false | 139 // 'host-div', // should skip host when tabStop = false |
| 140 'host-div/inner-input' | 140 'host-div/inner-input' |
| 141 ]; | 141 ]; |
| 142 | 142 |
| 143 testFocusNavigationForward(expectedOrder); | 143 testFocusNavigationForward(expectedOrder); |
| 144 expectedOrder.reverse(); | 144 expectedOrder.reverse(); |
| 145 testFocusNavigationBackward(expectedOrder); | 145 testFocusNavigationBackward(expectedOrder); |
| 146 } | 146 } |
| 147 | 147 |
| 148 function run_tests() { | 148 function run_tests() { |
| 149 if (window.testRunner) | |
| 150 testRunner.dumpAsText(); | |
| 151 | |
| 152 if (!window.eventSender) { | 149 if (!window.eventSender) { |
| 153 testFailed(''); | 150 testFailed(''); |
| 154 return; | 151 return; |
| 155 } | 152 } |
| 156 | 153 |
| 157 prepareDOMTree(document.body); | 154 prepareDOMTree(document.body); |
| 158 test(); | 155 test(); |
| 159 | 156 |
| 160 debug('Test finished.'); | 157 debug('Test finished.'); |
| 161 } | 158 } |
| 162 | 159 |
| 163 run_tests(); | 160 run_tests(); |
| 164 </script> | 161 </script> |
| 165 </body> | 162 </body> |
| 166 </html> | 163 </html> |
| OLD | NEW |