| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <p id="description"></p> | 5 <p id="description"></p> |
| 6 <div id="sandbox"></div> | 6 <div id="sandbox"></div> |
| 7 <pre id="console"></pre> | 7 <pre id="console"></pre> |
| 8 <script> | 8 <script> |
| 9 description("Tests to ensure that accesskey works in iframes and other iframes d
on't effect current accesskey maps."); | 9 description("Tests to ensure that accesskey works in iframes and other iframes d
on't effect current accesskey maps."); |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 debug('\nAn accesskey defined in an ancestor iframe should be ignored. "inpu
tD" has accesskey of "b", which should not be selected from descendant iframes,
iframe1 and iframe2.'); | 78 debug('\nAn accesskey defined in an ancestor iframe should be ignored. "inpu
tD" has accesskey of "b", which should not be selected from descendant iframes,
iframe1 and iframe2.'); |
| 79 clearEventRecords(); | 79 clearEventRecords(); |
| 80 shouldBe('iframe1.contentDocument.getElementById("inputG").focus(); pressAcc
essKey("b"); targetsOfFocusEvents', '["inputG"]'); | 80 shouldBe('iframe1.contentDocument.getElementById("inputG").focus(); pressAcc
essKey("b"); targetsOfFocusEvents', '["inputG"]'); |
| 81 clearEventRecords(); | 81 clearEventRecords(); |
| 82 shouldBe('iframe2.contentDocument.getElementById("inputK").focus(); pressAcc
essKey("b"); targetsOfFocusEvents', '["inputK"]'); | 82 shouldBe('iframe2.contentDocument.getElementById("inputK").focus(); pressAcc
essKey("b"); targetsOfFocusEvents', '["inputK"]'); |
| 83 } | 83 } |
| 84 | 84 |
| 85 test(); | 85 test(); |
| 86 </script> | 86 </script> |
| 87 <script src="../js/resources/js-test-post.js"></script> | |
| 88 </body> | 87 </body> |
| 89 </html> | 88 </html> |
| OLD | NEW |