Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / nested-window-event.html
blob6404241624deae05e8b6b8389d5bb9d280758480
1 <html>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 function run_test() {
8 var oldEvent = window.event;
9 var xhr = new XMLHttpRequest();
10 xhr.onreadystatechange = function() {}
11 xhr.open("GET", "test.html");
12 xhr.send();
13 // window.event should exist, and same as oldEvent.
14 document.getElementById('console').innerHTML = oldEvent == window.event ? 'PASS' : 'FAIL';
16 </script>
17 <body onload="run_test()">
18 This tests window.event was kept the same when nested event
19 handling was called. You should see 'PASS' if the test passes.
20 <br>
21 <div id='console'></div>
22 </body>
23 </html>