| Index: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..39113269311e85782a8f381e32cff43856ab7d74
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<title>ServiceWorkerGlobalScope: scope property is default value</title>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharness-helpers.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../resources/test-helpers.js"></script>
|
| +<script src="resources/scope.js"></script>
|
| +<script>
|
| +
|
| +promise_test(function(t) {
|
| + return assert_promise_rejects(
|
| + navigator.serviceWorker.register('resources/scope-worker.js'),
|
| + 'SecurityError',
|
| + 'Registering a script not in the root directory for the default scope' +
|
| + 'should fail with SecurityError.');
|
| + }, 'Register a script not in the root directory for the default scope.');
|
| +</script>
|
|
|