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

Side by Side Diff: LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>ServiceWorker object: terminate operation</title> 2 <title>ServiceWorker object: terminate operation</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/test-helpers.js"></script> 5 <script src="resources/test-helpers.js"></script>
6 <script> 6 <script>
7 7
8 async_test(function(t) { 8 async_test(function(t) {
9 var worker = 'resources/empty-worker.js'; 9 var worker = 'resources/empty-worker.js';
10 var scope = 'resources/blank.html'; 10 var scope = 'resources/blank.html';
11 service_worker_unregister_and_register(t, worker, scope) 11 service_worker_unregister_and_register(t, worker, scope)
12 .then(t.step_func(function(registration) { 12 .then(t.step_func(function(registration) {
13 assert_throws({name: 'InvalidAccessError'}, function() { 13 assert_equals(undefined, registration.installing.terminate);
14 registration.installing.terminate();
15 });
16 return service_worker_unregister_and_done(t, scope); 14 return service_worker_unregister_and_done(t, scope);
17 })) 15 }))
18 .catch(t.step_func(function(e) { throw e; })); 16 .catch(t.step_func(function(e) { throw e; }));
19 }, 'Verify the terminate operation'); 17 }, 'Verify the terminate method is undefined.');
falken 2015/06/22 06:16:26 IIUC, this test is now redundant with the interfac
jungkees 2015/06/22 06:52:56 Agreed. Removed the test file.
20 18
21 </script> 19 </script>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/interfaces.html ('k') | Source/modules/serviceworkers/ServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698