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

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

Issue 672383003: [ServiceWorker] Don't allow registration of the ServiceWorker scope outside the script directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: geofencing/apis_not_implemented.html Created 6 years, 1 month 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>ServiceWorkerGlobalScope: scope property is default value</title> 2 <title>ServiceWorkerGlobalScope: scope property is default value</title>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharness-helpers.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
5 <script src="../resources/test-helpers.js"></script> 6 <script src="../resources/test-helpers.js"></script>
6 <script src="resources/scope.js"></script> 7 <script src="resources/scope.js"></script>
7 <script> 8 <script>
8 async_test(function(t) { 9
9 scope_test(t, 'resources/scope-worker.js'); 10 promise_test(function(t) {
10 }, 'Verify the scope property: default scope'); 11 return assert_promise_rejects(
12 navigator.serviceWorker.register('resources/scope-worker.js'),
13 'SecurityError',
14 'Registration default scope should fail with SecurityError.');
15 }, 'Registering default scope');
falken 2014/10/24 06:50:44 This test should have a better name. "Register a s
horo 2014/10/24 07:21:43 Done.
11 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698