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

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

Issue 1194813003: Service Worker: Remove ServiceWorker.terminate() method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html » ('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 var EVENT_HANDLER = 'object';
(...skipping 21 matching lines...) Expand all
32 active: 'object', 32 active: 'object',
33 scope: 'string', 33 scope: 'string',
34 unregister: 'function', 34 unregister: 'function',
35 onupdatefound: EVENT_HANDLER 35 onupdatefound: EVENT_HANDLER
36 }); 36 });
37 verify_interface( 37 verify_interface(
38 'ServiceWorker', registration.installing, 38 'ServiceWorker', registration.installing,
39 { 39 {
40 scriptURL: 'string', 40 scriptURL: 'string',
41 state: 'string', 41 state: 'string',
42 terminate: 'function',
43 onstatechange: EVENT_HANDLER 42 onstatechange: EVENT_HANDLER
44 }); 43 });
45 return registration.unregister(); 44 return registration.unregister();
46 }) 45 })
47 .then(function() { 46 .then(function() {
48 t.done(); 47 t.done();
49 }) 48 })
50 .catch(unreached_rejection(t)); 49 .catch(unreached_rejection(t));
51 }, 'Interfaces and attributes of ServiceWorker'); 50 }, 'Interfaces and attributes of ServiceWorker');
52 51
53 service_worker_test( 52 service_worker_test(
54 'resources/interfaces-worker.js', 53 'resources/interfaces-worker.js',
55 'Interfaces and attributes in ServiceWorkerGlobalScope'); 54 'Interfaces and attributes in ServiceWorkerGlobalScope');
56 55
57 </script> 56 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698