| 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 that pressing Tab key should traverse into shadow DOM subtrees, an
d pressing Shift-Tab should reverse the order.</p> | 8 <p>This tests that pressing Tab key should traverse into shadow DOM subtrees, an
d pressing Shift-Tab should reverse the order.</p> |
| 9 <div id="sandbox"></div> | 9 <div id="sandbox"></div> |
| 10 <pre id="console"></pre> | 10 <pre id="console"></pre> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 sandbox.offsetLeft; | 47 sandbox.offsetLeft; |
| 48 | 48 |
| 49 var elementsInFocusNavigationOrder = ['input-1', 'summary-1', 'input-2']; | 49 var elementsInFocusNavigationOrder = ['input-1', 'summary-1', 'input-2']; |
| 50 testFocusNavigationForward(elementsInFocusNavigationOrder); | 50 testFocusNavigationForward(elementsInFocusNavigationOrder); |
| 51 elementsInFocusNavigationOrder.reverse() | 51 elementsInFocusNavigationOrder.reverse() |
| 52 testFocusNavigationBackward(elementsInFocusNavigationOrder); | 52 testFocusNavigationBackward(elementsInFocusNavigationOrder); |
| 53 } | 53 } |
| 54 | 54 |
| 55 | 55 |
| 56 function test() { | 56 function test() { |
| 57 if (window.testRunner) | |
| 58 testRunner.dumpAsText(); | |
| 59 | |
| 60 if (!window.eventSender) { | 57 if (!window.eventSender) { |
| 61 testFailed(''); | 58 testFailed(''); |
| 62 return; | 59 return; |
| 63 } | 60 } |
| 64 | 61 |
| 65 testWithDistributedNodes() | 62 testWithDistributedNodes() |
| 66 testDetailsSummary(); | 63 testDetailsSummary(); |
| 67 | 64 |
| 68 debug('Test finished.'); | 65 debug('Test finished.'); |
| 69 } | 66 } |
| 70 | 67 |
| 71 test(); | 68 test(); |
| 72 | 69 |
| 73 </script> | 70 </script> |
| 74 </body> | 71 </body> |
| 75 </html> | 72 </html> |
| OLD | NEW |