1description('Tests that events are never fired sycnhronously from a call to window.addEventListener().');
2
3if (window.layoutTestController)
4    layoutTestController.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3);
5else
6    debug('This test can not be run without the LayoutTestController');
7
8var hasAddEventListenerReturned = false;
9window.addEventListener('deviceorientation', function() {
10    shouldBeTrue('hasAddEventListenerReturned');
11    finishJSTest();
12});
13hasAddEventListenerReturned = true;
14
15window.jsTestIsAsync = true;
16window.successfullyParsed = true;
17