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

Unified Diff: LayoutTests/media/restore-from-page-cache.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/restore-from-page-cache.html
diff --git a/LayoutTests/media/restore-from-page-cache.html b/LayoutTests/media/restore-from-page-cache.html
deleted file mode 100644
index 1db209f6923fbee0466156835fa6c131a94a8330..0000000000000000000000000000000000000000
--- a/LayoutTests/media/restore-from-page-cache.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<html>
- <head>
- <script src=media-file.js></script>
- <script src=video-test.js></script>
- <script>
- var mediaFile = findMediaFile("video", "content/test");
- var loadCount = 0;
-
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
- }
-
- function pageshow(evt)
- {
- if (!evt.persisted) {
- // this is the first time the page has been loaded, setup the video element
- setup();
- } else {
- consoleWrite("*** Page returned from cache");
-
- testExpected("loadCount", 1);
-
- // schedule the test to end shortly, but wait long enough for the element to fire loading events
- // if that is going to happen
- setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 200);
- }
- }
-
- function canplaythrough()
- {
- testExpected("loadCount", 0);
- if (!loadCount) {
- consoleWrite("*** Page going into cache");
- setTimeout('window.location = "data:text/html,<script>history.back()<" + "/script>"', 0);
- }
- ++loadCount;
- }
-
- function setup()
- {
- video = mediaElement = document.getElementsByTagName('video')[0];
-
- waitForEvent('loadstart');
- waitForEvent('canplaythrough', canplaythrough);
-
- video.src = mediaFile;
- }
-
- window.onpageshow = pageshow;
- </script>
- </head>
- <body>
-
- <video controls > </video>
- <p>Make sure we don't reload a &lt;video&gt; element when navigating back to an uncached page.</p>
- </body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698