4 <script src=
"../../../resources/js-test.js"></script>
6 description('Tests that events are never fired synchronously from a call to window.addEventListener().');
9 testRunner
.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3, true, true);
11 debug('This test can not be run without the TestRunner');
13 var hasAddEventListenerReturned
= false;
14 window
.addEventListener('deviceorientation', function() {
15 shouldBeTrue('hasAddEventListenerReturned');
18 hasAddEventListenerReturned
= true;
20 window
.jsTestIsAsync
= true;