Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: LayoutTests/fast/events/script-tests/onunload-back-to-page-cache.js

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 description('Simulates flow from a page that\'s in the page cache to one that\'s not, and then back to the page cached page.');
2
3 onpageshow = function(event) {
4 if (window.name == 'navigated') {
5 testPassed('WebTiming asserts in FrameLoader.cpp did not fire');
6 finishJSTest();
7 } else {
8 if (window.testRunner)
9 testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1) ;
10 setTimeout(function() {location.href = 'data:text/html,<script>onunload= function() {},onload=function(){window.name = \'navigated\';history.back();}<' + '/script>';}, 0);
11 }
12 }
13
14 var jsTestIsAsync = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698