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

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

Issue 2763123002: Upstream service worker `claim` tests to WPT (Closed)
Patch Set: Persist Chromium-specific version of test Created 3 years, 9 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 using registration</title> 2 <title>Service Worker: claim client using registration</title>
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="resources/testharness-helpers.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/test-helpers.sub.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
7 <script> 6 <script>
8 7
9 promise_test(function(t) { 8 promise_test(function(t) {
10 var scope = 'resources/'; 9 var scope = 'resources/';
11 var frame_url = 'resources/blank.html?using-different-registration'; 10 var frame_url = 'resources/blank.html?using-different-registration';
12 var url1 = 'resources/empty.js'; 11 var url1 = 'resources/empty.js';
13 var url2 = 'resources/claim-worker.js'; 12 var url2 = 'resources/claim-worker.js';
14 var worker, sw_registration, frame; 13 var worker, sw_registration, frame;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return saw_message; 90 return saw_message;
92 }) 91 })
93 .then(function() { 92 .then(function() {
94 frame.remove(); 93 frame.remove();
95 return service_worker_unregister_and_done(t, scope); 94 return service_worker_unregister_and_done(t, scope);
96 }); 95 });
97 }, 'Test for the waiting worker claims a client which is using the the ' + 96 }, 'Test for the waiting worker claims a client which is using the the ' +
98 'same registration'); 97 'same registration');
99 98
100 </script> 99 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698