| Index: LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html b/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f134814701252766873de0aeb321814cb354408c
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<title>ServiceWorker object: terminate operation</title>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script src="resources/test-helpers.js"></script>
|
| +<script>
|
| +
|
| +async_test(function(t) {
|
| + var worker = 'resources/empty-worker.js';
|
| + var scope = 'resources/blank.html';
|
| + service_worker_unregister_and_register(t, worker, scope)
|
| + .then(t.step_func(function(registration) {
|
| + return wait_for_update(t, registration);
|
| + }))
|
| + .then(t.step_func(function(worker) {
|
| + assert_throws({name: 'InvalidAccessError'}, function() {
|
| + worker.terminate();
|
| + });
|
| + return service_worker_unregister_and_done(t, scope);
|
| + }))
|
| + .catch(t.step_func(function(e) { throw e; }));
|
| +}, 'Verify the terminate operation');
|
| +
|
| +</script>
|
|
|