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

Side by Side Diff: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html

Issue 681483004: [ServiceWorker] Introduce the directory restriction of ServiceWorker scope [3/3 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@UpdateTests
Patch Set: add LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html Created 6 years, 2 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/registration.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>ServiceWorkerGlobalScope: scope property is default value</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharness-helpers.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/test-helpers.js"></script>
7 <script src="resources/scope.js"></script>
8 <script>
9
10 promise_test(function(t) {
11 return assert_promise_rejects(
12 navigator.serviceWorker.register('resources/scope-worker.js'),
13 'SecurityError',
14 'Registering a script not in the root directory for the default scope' +
15 'should fail with SecurityError.');
16 }, 'Register a script not in the root directory for the default scope.');
17 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/registration.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698