OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('This test checks to see if accesskey attributes works on all elemen
ts.'); | 8 description('This test checks to see if accesskey attributes works on all elemen
ts.'); |
9 | 9 |
10 function pressKey(key) | 10 function pressKey(key) |
(...skipping 20 matching lines...) Expand all Loading... |
31 testElement.onclick = function () { clicked = true; } | 31 testElement.onclick = function () { clicked = true; } |
32 var focused = false; | 32 var focused = false; |
33 testElement.onfocus = function () { focused = true; } | 33 testElement.onfocus = function () { focused = true; } |
34 debug('Check for ' + testElement.tagName + ' tag'); | 34 debug('Check for ' + testElement.tagName + ' tag'); |
35 shouldBeDefined('testElement.accessKey'); | 35 shouldBeDefined('testElement.accessKey'); |
36 shouldBeTrue("testElement.accessKey ='k'; testElement.accessKey == 'k'"); | 36 shouldBeTrue("testElement.accessKey ='k'; testElement.accessKey == 'k'"); |
37 shouldBe("pressKey(testElement.accessKey);[clicked, focused]", "[true, false
]"); | 37 shouldBe("pressKey(testElement.accessKey);[clicked, focused]", "[true, false
]"); |
38 debug(''); | 38 debug(''); |
39 } | 39 } |
40 </script> | 40 </script> |
41 <script src="../js/resources/js-test-post.js"></script> | |
42 <div id="console"></div> | 41 <div id="console"></div> |
43 </body> | 42 </body> |
44 </html> | 43 </html> |
OLD | NEW |