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> |