| 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 <pre id="console"></pre> | 9 <pre id="console"></pre> |
| 10 <script> | 10 <script> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 prepareDOMTree(document.body); | 42 prepareDOMTree(document.body); |
| 43 | 43 |
| 44 var elementsInFocusNavigationOrder = [ | 44 var elementsInFocusNavigationOrder = [ |
| 45 'A', | 45 'A', |
| 46 'host', | 46 'host', |
| 47 'host///younger-A', | 47 'host///younger-A', |
| 48 'host//older-A', | 48 'host//older-A', |
| 49 'host//older-B', | 49 'host//older-B', |
| 50 'host///younger-B', | 50 'host///younger-B', |
| 51 'light-child-B', |
| 51 'B', | 52 'B', |
| 52 ]; | 53 ]; |
| 53 | 54 |
| 54 testFocusNavigationForward(elementsInFocusNavigationOrder); | 55 testFocusNavigationForward(elementsInFocusNavigationOrder); |
| 55 elementsInFocusNavigationOrder.reverse(); | 56 elementsInFocusNavigationOrder.reverse(); |
| 56 testFocusNavigationBackward(elementsInFocusNavigationOrder); | 57 testFocusNavigationBackward(elementsInFocusNavigationOrder); |
| 57 | 58 |
| 58 debug('Test finished.'); | 59 debug('Test finished.'); |
| 59 } | 60 } |
| 60 | 61 |
| 61 test(); | 62 test(); |
| 62 | 63 |
| 63 </script> | 64 </script> |
| 64 </body> | 65 </body> |
| 65 </html> | 66 </html> |
| OLD | NEW |