diff options
Diffstat (limited to 'LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js')
-rw-r--r-- | LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js new file mode 100644 index 0000000..2756e55 --- /dev/null +++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/event-after-navigation.js @@ -0,0 +1,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; |