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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/appcache-ordering.install.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 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 unified diff | Download patch
OLDNEW
1 <html manifest="appcache-ordering.manifest"> 1 <html manifest="appcache-ordering.manifest">
2 <script> 2 <script>
3 var handled = false; 3 var handled = false;
4 4
5 function installComplete() { 5 function installComplete() {
6 if (handled) 6 if (handled)
7 return; 7 return;
8 handled = true; 8 handled = true;
9 window.parent.notify_appcache_installed(true); 9 window.parent.notify_appcache_installed(true);
10 } 10 }
11 11
12 function installFailed() { 12 function installFailed() {
13 if (handled) 13 if (handled)
14 return; 14 return;
15 handled = true; 15 handled = true;
16 window.parent.notify_appcache_installed(false); 16 window.parent.notify_appcache_installed(false);
17 } 17 }
18 18
19 applicationCache.oncached = installComplete; 19 applicationCache.oncached = installComplete;
20 applicationCache.onnoupdate = installComplete; 20 applicationCache.onnoupdate = installComplete;
21 applicationCache.onupdateready = installFailed; 21 applicationCache.onupdateready = installFailed;
22 applicationCache.onerror = installFailed; 22 applicationCache.onerror = installFailed;
23 applicationCache.onobsolete = installFailed; 23 applicationCache.onobsolete = installFailed;
24 24
25 </script> 25 </script>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698