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

Side by Side Diff: LayoutTests/http/tests/serviceworker/registration-service-worker-attributes.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/test-helpers.js"></script> 4 <script src="resources/test-helpers.js"></script>
5 <script> 5 <script>
6 async_test(function(t) { 6 async_test(function(t) {
7 var scope = 'scope/installing-waiting-active-after-registration'; 7 var scope = 'resources/scope/installing-waiting-active-after-registration';
8 var worker_url = 'resources/empty-worker.js'; 8 var worker_url = 'resources/empty-worker.js';
9 var expected_url = normalizeURL(worker_url); 9 var expected_url = normalizeURL(worker_url);
10 10
11 service_worker_unregister_and_register(t, worker_url, scope) 11 service_worker_unregister_and_register(t, worker_url, scope)
12 .then(function(r) { 12 .then(function(r) {
13 registration = r; 13 registration = r;
14 assert_equals(registration.installing.scriptURL, expected_url, 14 assert_equals(registration.installing.scriptURL, expected_url,
15 'installing before updatefound'); 15 'installing before updatefound');
16 assert_equals(registration.waiting, null, 16 assert_equals(registration.waiting, null,
17 'waiting before updatefound'); 17 'waiting before updatefound');
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'installing after redundant'); 54 'installing after redundant');
55 assert_equals(registration.waiting, null, 55 assert_equals(registration.waiting, null,
56 'waiting after redundant'); 56 'waiting after redundant');
57 assert_equals(registration.active.scriptURL, expected_url, 57 assert_equals(registration.active.scriptURL, expected_url,
58 'active after redundant'); 58 'active after redundant');
59 t.done(); 59 t.done();
60 }) 60 })
61 .catch(unreached_rejection(t)); 61 .catch(unreached_rejection(t));
62 }, 'installing/waiting/active after registration'); 62 }, 'installing/waiting/active after registration');
63 </script> 63 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698