blob: 0f4bc5183e00155d9fd3359bee1b5fbcb81c216a [file] [log] [blame]
description('Tests that events are never fired sycnhronously from a call to window.addEventListener().');
if (window.layoutTestController)
layoutTestController.setMockDeviceOrientation(true, 1.1, true, 2.2, true, 3.3);
else
debug('This test can not be run without the LayoutTestController');
var hasAddEventListenerReturned = false;
window.addEventListener('deviceorientation', function() {
shouldBeTrue('hasAddEventListenerReturned');
finishJSTest();
});
hasAddEventListenerReturned = true;
window.jsTestIsAsync = true;
window.successfullyParsed = true;