summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js
blob: 77e4ec768acfc9d162313fc968df89c35db1c61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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');

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

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