summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js
blob: 2756e5530875d6bec6d73e2783d14fb8d14e3489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
description('Tests for a crash where an event is fired after the page has been navigated away when the original page is in the page cache.');

if (window.layoutTestController)
    layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
else
    debug('This test can not be run without the LayoutTestController');

window.addEventListener('deviceorientation', function() { } );
window.location = "resources/event-after-navigation-new.html";

window.jsTestIsAsync = true;
window.successfullyParsed = true;