Chromium Code Reviews

Unified Diff: LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html

Issue 671583002: Test: Pages controlled by ServiceWorkers should not participate in AppCaching (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html b/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html
new file mode 100644
index 0000000000000000000000000000000000000000..ea052f0b08b5e368ca2b58459611c7846f2c795b
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html
@@ -0,0 +1,28 @@
+<html manifest="appcache-ordering.manifest">
+<script>
+var handled = false;
+
+function installComplete()
+{
+ if (handled)
+ return;
+ handled = true;
+ window.parent.notify_appcache_installed(true);
+}
+
+function installFailed()
+{
+ if (handled)
+ return;
+ handled = true;
+ window.parent.notify_appcache_installed(false);
+}
+
+applicationCache.oncached = installComplete;
+applicationCache.onnoupdate = installComplete;
+applicationCache.onupdateready = installFailed;
+applicationCache.onerror = installFailed;
+applicationCache.onobsolete =installFailed;
falken 2014/10/21 04:54:44 nit: missing space after =
+
+</script>
+</html>

Powered by Google App Engine