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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/claim-not-using-registration.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 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 <title>Service Worker: claim client not using registration</title> 2 <title>Service Worker: claim client not using registration</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/testharness-helpers.js"></script>
5 <script src="resources/test-helpers.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/test-helpers.sub.js"></script>
6 <body> 7 <body>
7 <script> 8 <script>
8 9
9 promise_test(function(t) { 10 promise_test(function(t) {
10 var init_scope = 'resources/blank.html?not-using-init'; 11 var init_scope = 'resources/blank.html?not-using-init';
11 var claim_scope = 'resources/blank.html?not-using'; 12 var claim_scope = 'resources/blank.html?not-using';
12 var init_worker_url = 'resources/empty.js'; 13 var init_worker_url = 'resources/empty.js';
13 var claim_worker_url = 'resources/claim-worker.js'; 14 var claim_worker_url = 'resources/claim-worker.js';
14 var claim_worker, claim_registration, frame1, frame2; 15 var claim_worker, claim_registration, frame1, frame2;
15 return service_worker_unregister_and_register( 16 return service_worker_unregister_and_register(
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 frame.remove(); 114 frame.remove();
114 return service_worker_unregister(t, claim_scope); 115 return service_worker_unregister(t, claim_scope);
115 }) 116 })
116 .then(function() { 117 .then(function() {
117 return service_worker_unregister_and_done(t, scope); 118 return service_worker_unregister_and_done(t, scope);
118 }); 119 });
119 }, 'Test claim client when there\'s a longer-matched registration not ' + 120 }, 'Test claim client when there\'s a longer-matched registration not ' +
120 'already used by the page'); 121 'already used by the page');
121 122
122 </script> 123 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698