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

Side by Side Diff: LayoutTests/http/tests/geofencing/apis_not_implemented.html

Issue 674133004: [ServiceWorker] Introduce the directory restriction of ServiceWorker scope [1/3 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove 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/ServiceWorkerGlobalScope/scope-absolute-url.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Tests that all geofencing methods exposed on a service worker registratio n always reject.</title> 2 <title>Tests that all geofencing methods exposed on a service worker registratio n always reject.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="../resources/testharness-helpers.js"></script> 5 <script src="../resources/testharness-helpers.js"></script>
6 <script src="../serviceworker/resources/test-helpers.js"></script> 6 <script src="../serviceworker/resources/test-helpers.js"></script>
7 <script> 7 <script>
8 var sw_url = 'resources/emptyworker.js'; 8 var sw_url = 'resources/emptyworker.js';
9 var sw_scope = '/service-worker-scope' + window.location.pathname; 9 var sw_scope = 'resources/service-worker-scope' + window.location.pathname;
10 10
11 promise_test(function(test) { 11 promise_test(function(test) {
12 return assert_promise_rejects( 12 return assert_promise_rejects(
13 service_worker_unregister_and_register(test, sw_url, sw_scope + '/register ') 13 service_worker_unregister_and_register(test, sw_url, sw_scope + '/register ')
14 .then(function(r) { 14 .then(function(r) {
15 return r.geofencing.registerRegion( 15 return r.geofencing.registerRegion(
16 new CircularGeofencingRegion({latitude: 37.421999, 16 new CircularGeofencingRegion({latitude: 37.421999,
17 longitude: -122.084015})); 17 longitude: -122.084015}));
18 }), 18 }),
19 'AbortError', 19 'AbortError',
(...skipping 14 matching lines...) Expand all
34 return assert_promise_rejects( 34 return assert_promise_rejects(
35 service_worker_unregister_and_register(test, sw_url, sw_scope + '/getregio ns') 35 service_worker_unregister_and_register(test, sw_url, sw_scope + '/getregio ns')
36 .then(function(r) { 36 .then(function(r) {
37 return r.geofencing.getRegisteredRegions(); 37 return r.geofencing.getRegisteredRegions();
38 }), 38 }),
39 'AbortError', 39 'AbortError',
40 'getRegisteredRegions should fail with an AbortError'); 40 'getRegisteredRegions should fail with an AbortError');
41 }, 'getRegisteredRegions should fail'); 41 }, 'getRegisteredRegions should fail');
42 42
43 </script> 43 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-absolute-url.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698