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

Side by Side Diff: LayoutTests/http/tests/serviceworker/interfaces.html

Issue 765323002: ServiceWorker: Add support for .skipWaiting and controllerchange event(3/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add new test Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Service Worker: Interfaces</title> 2 <title>Service Worker: Interfaces</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/interfaces.js"></script> 5 <script src="resources/interfaces.js"></script>
6 <script src="resources/test-helpers.js"></script> 6 <script src="resources/test-helpers.js"></script>
7 <script> 7 <script>
8 8
9 test(function() { 9 test(function() {
10 var EVENT_HANDLER = 'object';
10 verify_interface( 11 verify_interface(
11 'ServiceWorkerContainer', navigator.serviceWorker, 12 'ServiceWorkerContainer', navigator.serviceWorker,
12 { 13 {
13 register: 'function', 14 register: 'function',
14 getRegistration: 'function' 15 getRegistration: 'function',
16 oncontrollerchange: EVENT_HANDLER
15 }); 17 });
16 }, 'Interfaces and attributes of ServiceWorkerContainer'); 18 }, 'Interfaces and attributes of ServiceWorkerContainer');
17 19
18 async_test(function(t) { 20 async_test(function(t) {
19 var EVENT_HANDLER = 'object'; 21 var EVENT_HANDLER = 'object';
20 var scope = 'resources/scope/interfaces-and-attributes'; 22 var scope = 'resources/scope/interfaces-and-attributes';
21 23
22 service_worker_unregister_and_register( 24 service_worker_unregister_and_register(
23 t, 'resources/empty-worker.js', scope) 25 t, 'resources/empty-worker.js', scope)
24 .then(function(registration) { 26 .then(function(registration) {
(...skipping 21 matching lines...) Expand all
46 t.done(); 48 t.done();
47 }) 49 })
48 .catch(unreached_rejection(t)); 50 .catch(unreached_rejection(t));
49 }, 'Interfaces and attributes of ServiceWorker'); 51 }, 'Interfaces and attributes of ServiceWorker');
50 52
51 service_worker_test( 53 service_worker_test(
52 'resources/interfaces-worker.js', 54 'resources/interfaces-worker.js',
53 'Interfaces and attributes in ServiceWorkerGlobalScope'); 55 'Interfaces and attributes in ServiceWorkerGlobalScope');
54 56
55 </script> 57 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698