event-after-navigation.html 683 Bytes
Newer Older
1 2
<html>
<head>
3
<script src="../resources/js-test-pre.js"></script>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
</head>
<body>
<script>
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.testRunner)
    testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
else
    debug('This test can not be run without the TestRunner');

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

window.jsTestIsAsync = true;
</script>
21
<script src="../resources/js-test-post.js"></script>
22 23
</body>
</html>