| OLD | NEW |
| 1 description('Tests that events are never fired synchronously from a call to wind
ow.addEventListener().'); | 1 description('Tests that events are never fired synchronously from a call to wind
ow.addEventListener().'); |
| 2 | 2 |
| 3 if (window.testRunner) | 3 if (window.testRunner) |
| 4 testRunner.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3); | 4 testRunner.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3, true, t
rue); |
| 5 else | 5 else |
| 6 debug('This test can not be run without the TestRunner'); | 6 debug('This test can not be run without the TestRunner'); |
| 7 | 7 |
| 8 var hasAddEventListenerReturned = false; | 8 var hasAddEventListenerReturned = false; |
| 9 window.addEventListener('deviceorientation', function() { | 9 window.addEventListener('deviceorientation', function() { |
| 10 shouldBeTrue('hasAddEventListenerReturned'); | 10 shouldBeTrue('hasAddEventListenerReturned'); |
| 11 finishJSTest(); | 11 finishJSTest(); |
| 12 }); | 12 }); |
| 13 hasAddEventListenerReturned = true; | 13 hasAddEventListenerReturned = true; |
| 14 | 14 |
| 15 window.jsTestIsAsync = true; | 15 window.jsTestIsAsync = true; |
| OLD | NEW |