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

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. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..428ad92c782eaccb42b14b4ea9a78a4dba500073
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/appcache-ordering.install.html
@@ -0,0 +1,26 @@
+<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;
+
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698