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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/getregistrations.https.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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: getRegistrations()</title> 2 <title>Service Worker: getRegistrations()</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/test-helpers.sub.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
6 <script src="resources/get-host-info.sub.js"></script> 6 <script src="/common/get-host-info.sub.js"></script>
7 <script src="../fetch/resources/fetch-test-helpers.sub.js"></script> 7 <script src="../fetch/resources/fetch-test-helpers.sub.js"></script>
8 <script> 8 <script>
9 // Purge the existing registrations for the origin. 9 // Purge the existing registrations for the origin.
10 // getRegistrations() is used in order to avoid adding additional complexity 10 // getRegistrations() is used in order to avoid adding additional complexity
11 // e.g. adding an internal function. 11 // e.g. adding an internal function.
12 promise_test(function(t) { 12 promise_test(function(t) {
13 return navigator.serviceWorker.getRegistrations() 13 return navigator.serviceWorker.getRegistrations()
14 .then(function(registrations) { 14 .then(function(registrations) {
15 return registrations.reduce(function(sequence, registration) { 15 return registrations.reduce(function(sequence, registration) {
16 return sequence.then(function() { 16 return sequence.then(function() {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return p; 182 return p;
183 }) 183 })
184 .then(function() { 184 .then(function() {
185 frame.remove(); 185 frame.remove();
186 return service_worker_unregister(t, scope); 186 return service_worker_unregister(t, scope);
187 }); 187 });
188 }, 'getRegistrations promise resolves only with same origin registrations.'); 188 }, 'getRegistrations promise resolves only with same origin registrations.');
189 189
190 done(); 190 done();
191 </script> 191 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698