OLD | NEW |
| (Empty) |
1 <html> | |
2 | |
3 <script> | |
4 if (window.layoutTestController) { | |
5 layoutTestController.dumpAsText(); | |
6 } | |
7 | |
8 function run_test() { | |
9 var old_evt = window.event; | |
10 var xhr = new XMLHttpRequest(); | |
11 xhr.onreadystatechange = function() {} | |
12 xhr.open("GET", "test.html"); | |
13 xhr.send(); | |
14 // window.event should exist, and same as old_evt. | |
15 document.getElementById('console').innerHTML = | |
16 old_evt == window.event ? 'PASS' : 'FAIL'; | |
17 } | |
18 </script> | |
19 <body onload="run_test()"> | |
20 This tests window.event was kept the same when nested event | |
21 handling was called. You should see 'PASS' if the test passes. | |
22 <br> | |
23 <div id='console'></div> | |
24 </body> | |
25 </html> | |
OLD | NEW |