Chromium Code Reviews| 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..95f494561297cd590b3243557140d49f7366f2d1 |
| --- /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() |
|
falken
2014/10/21 01:28:31
snake_case for consistency
|
| +{ |
| + if (handled) |
| + return; |
| + handled = true; |
| + window.parent.notifyAppCacheInstalled(true); |
| +} |
| + |
| +function installFailed() |
| +{ |
| + if (handled) |
| + return; |
| + handled = true; |
| + window.parent.notifyAppCacheInstalled(false); |
| +} |
| + |
| +applicationCache.oncached = installComplete; |
| +applicationCache.onnoupdate = installComplete; |
| +applicationCache.onupdateready = installFailed; |
| +applicationCache.onerror = installFailed; |
| +applicationCache.onobsolete =installFailed; |
|
falken
2014/10/21 01:28:31
nit: missing space after =
|
| + |
| +</script> |
| +</html> |