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