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