OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <input onbeforeload="1" onabort="1"> | 9 <input onbeforeload="1" onabort="1"> |
10 <script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbef
oreload async'); return false;" async></script> | 10 <script src="resources/shouldnotexecute.js" onbeforeload="debug('cancelled onbef
oreload async'); return false;" async></script> |
11 | 11 |
12 <script> | 12 <script> |
13 description('Test that setting event handlers with attribute works.'); | 13 description('Test that setting event handlers with attribute works.'); |
14 | 14 |
(...skipping 12 matching lines...) Expand all Loading... |
27 var element = document.createElement(elementTags[i]); | 27 var element = document.createElement(elementTags[i]); |
28 for (var j = 0; j < eventNames.length; j++) { | 28 for (var j = 0; j < eventNames.length; j++) { |
29 element.setAttribute(eventNames[j], "1"); | 29 element.setAttribute(eventNames[j], "1"); |
30 shouldBe('/*' + elementTags[i] + '*/ typeof (element["' + eventNames[j]
+ '"])', '"function"'); | 30 shouldBe('/*' + elementTags[i] + '*/ typeof (element["' + eventNames[j]
+ '"])', '"function"'); |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 </script> | 34 </script> |
35 </body> | 35 </body> |
36 </html> | 36 </html> |
OLD | NEW |