| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <script src="../../../resources/js-test.js"></script> | |
| 5 <script> | |
| 6 description('Tests that events are never fired synchronously from a call to wind
ow.addEventListener().'); | |
| 7 | |
| 8 if (window.testRunner) | |
| 9 testRunner.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3, true); | |
| 10 else | |
| 11 debug('This test can not be run without the TestRunner'); | |
| 12 | |
| 13 var hasAddEventListenerReturned = false; | |
| 14 window.addEventListener('deviceorientation', function() { | |
| 15 shouldBeTrue('hasAddEventListenerReturned'); | |
| 16 finishJSTest(); | |
| 17 }); | |
| 18 hasAddEventListenerReturned = true; | |
| 19 | |
| 20 window.jsTestIsAsync = true; | |
| 21 </script> | |
| 22 </body> | |
| 23 </html> | |
| OLD | NEW |