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

Side by Side Diff: LayoutTests/fast/events/pageshow-pagehide-on-back-cached.html

Issue 14195011: Removed WONTFIX tests (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 <p>Test pageshow/pagehide event behavior when navigating back to an cached page. </p>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
7 }
8
9 window.onload = function(evt) {
10 alert("window.onload");
11 }
12
13 window.onpageshow = function(evt) {
14 alert("window.onpageshow" + ", target = " + evt.target + ", persisted = " + evt.persisted);
15 if (evt.persisted) {
16 // Returned back.
17 window.onpagehide = null;
18 setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 0);
19 } else {
20 setTimeout('window.location.href = "data:text/html,<script>history.back( );</scr" + "ipt>"', 0);
21 }
22 }
23
24 window.onpagehide = function(evt) {
25 alert("window.onpagehide" + ", target = " + evt.target + ", persisted = " + evt.persisted);
26 }
27
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698