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

Unified Diff: LayoutTests/http/tests/appcache/interrupted-update.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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/http/tests/appcache/interrupted-update.html
diff --git a/LayoutTests/http/tests/appcache/interrupted-update.html b/LayoutTests/http/tests/appcache/interrupted-update.html
deleted file mode 100644
index 6576be3ade201a71da68ec33fdfb1d2a0519e7a1..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/appcache/interrupted-update.html
+++ /dev/null
@@ -1,76 +0,0 @@
-<html manifest="resources/interrupted-update.manifest">
-<p>Test that an application cache update works again after interruption.</p>
-<pre id=log></pre>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function log(msg)
-{
- document.getElementById("log").innerHTML += msg + "\n";
-}
-
-var haveReloaded = localStorage.getItem("appcache-interrupted-update-reloaded") == "YES";
-localStorage.removeItem("appcache-interrupted-update-reloaded");
-
-if (haveReloaded)
- log("Reloaded");
-
-function onchecking()
-{
- log("CHECKING");
-}
-
-function ondownloading()
-{
- log("DOWNLOADING");
-}
-
-function onprogress(event)
-{
- log("PROGRESS " + event.loaded + "/" + event.total);
-
- if (!haveReloaded && event.loaded == 2) {
- localStorage.setItem("appcache-interrupted-update-reloaded", "YES");
- console.log("Reloading...");
- window.location.reload();
- }
-}
-
-function onnoupdate()
-{
- log("NOUPDATE");
- log("\nFAIL - the cache was already present, so we couldn't test initial loading");
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function oncached()
-{
- log("CACHED");
- log("\nPASS");
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function onerror()
-{
- log("ERROR");
- log("\nFAIL");
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-
-applicationCache.addEventListener('checking', onchecking, false);
-applicationCache.addEventListener('downloading', ondownloading, false);
-applicationCache.addEventListener('progress', onprogress, false);
-applicationCache.addEventListener('noupdate', onnoupdate, false);
-applicationCache.addEventListener('cached', oncached, false);
-applicationCache.addEventListener('error', onerror, false);
-
-</script>
-
-</html>

Powered by Google App Engine
This is Rietveld 408576698