| 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 focusable elements</
p> | 8 <p>This tests TAB focus navigation with tabStop property on focusable elements</
p> |
| 9 <pre id="console"></pre> | 9 <pre id="console"></pre> |
| 10 <div id="sandbox"></div> | 10 <div id="sandbox"></div> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 'anchor-host/anchor-inner', | 165 'anchor-host/anchor-inner', |
| 166 'anchor-after' | 166 'anchor-after' |
| 167 ]; | 167 ]; |
| 168 | 168 |
| 169 testFocusNavigationForward(expectedOrder); | 169 testFocusNavigationForward(expectedOrder); |
| 170 expectedOrder.reverse(); | 170 expectedOrder.reverse(); |
| 171 testFocusNavigationBackward(expectedOrder); | 171 testFocusNavigationBackward(expectedOrder); |
| 172 } | 172 } |
| 173 | 173 |
| 174 function run_tests() { | 174 function run_tests() { |
| 175 if (window.testRunner) | |
| 176 testRunner.dumpAsText(); | |
| 177 | |
| 178 if (!window.eventSender) { | 175 if (!window.eventSender) { |
| 179 testFailed(''); | 176 testFailed(''); |
| 180 return; | 177 return; |
| 181 } | 178 } |
| 182 | 179 |
| 183 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", true); | 180 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", true); |
| 184 | 181 |
| 185 testFocusableElementsWithIsTabStop(); | 182 testFocusableElementsWithIsTabStop(); |
| 186 sandbox.innerHTML = ''; | 183 sandbox.innerHTML = ''; |
| 187 | 184 |
| 188 testButton(); | 185 testButton(); |
| 189 sandbox.innerHTML = ''; | 186 sandbox.innerHTML = ''; |
| 190 | 187 |
| 191 testAnchor(); | 188 testAnchor(); |
| 192 | 189 |
| 193 debug('Test finished.'); | 190 debug('Test finished.'); |
| 194 } | 191 } |
| 195 | 192 |
| 196 run_tests(); | 193 run_tests(); |
| 197 </script> | 194 </script> |
| 198 </body> | 195 </body> |
| 199 </html> | 196 </html> |
| OLD | NEW |