Index: LayoutTests/http/tests/serviceworker/resources/serviceworkerglobalscope-close-worker.js |
diff --git a/LayoutTests/http/tests/serviceworker/resources/serviceworkerglobalscope-close-worker.js b/LayoutTests/http/tests/serviceworker/resources/serviceworkerglobalscope-close-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..092e41d5420f62eb1ebdc6e7de771e30638fa230 |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/resources/serviceworkerglobalscope-close-worker.js |
@@ -0,0 +1,8 @@ |
+importScripts('interfaces.js'); |
+importScripts('worker-test-harness.js'); |
+ |
+test(function() { |
+ assert_throws({name: 'InvalidAccessError'}, function() { |
+ self.close(); |
+ }); |
+}, 'ServiceWorkerGlobalScope close operation'); |