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

Side by Side Diff: LayoutTests/fast/events/pagehide-timeout.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 <html>
2 <script src="../js/resources/js-test-pre.js"></script>
3 <body>
4
5 <script type="text/javascript">
6 description('Tests that JS execution is suspended after the pagehide event is fi red, so that timers created within it will not fire while the document is in the page cache.');
7
8 if (window.testRunner)
9 testRunner.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
10
11 onpagehide = function()
12 {
13 // Don't try to create the timeout again if the test is complete and we're
14 // moving to the next one.
15 if (!window.wasFinishJSTestCalled) {
16 console.log('Creating timeout in pagehide');
17 setTimeout(function() {
18 // This log statement should happen after the one done in the pagesh ow
19 // handler.
20 console.log('Timeout created in pagehide fired');
21 finishJSTest();
22 }, 100);
23 }
24 };
25
26 onpageshow = function(event)
27 {
28 if (event.persisted)
29 console.log('Restored page from page cache.');
30 }
31
32 onload = function()
33 {
34 setTimeout(function() {
35 location.href = 'resources/pagehide-timeout-go-back.html';
36 }, 0);
37 }
38 var jsTestIsAsync = true;
39 </script>
40 <script src="../js/resources/js-test-post.js"></script>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698