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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.skip-waiting-installed.html

Issue 2900183002: Upstream service wrkr "skipWaiting" tests to WPT (Closed)
Patch Set: Improve assertion message Created 3 years, 6 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 <!-- This test is prefixed with `chromium.` because the equivalent version in
3 the Web Platform Tests project is more strict, and Chromium does not
4 currently satisfy it. This file should be maintained only to preserve test
5 coverage until the corresponding version in the Web Plaform Tests project can
6 be made to pass. See https://crbug.com/725616 -->
2 <title>Service Worker: Skip waiting installed worker</title> 7 <title>Service Worker: Skip waiting installed worker</title>
3 <script src="../resources/testharness.js"></script> 8 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 9 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js"></script> 10 <script src="resources/test-helpers.js"></script>
6 <script> 11 <script>
7 12
8 promise_test(function(t) { 13 promise_test(function(t) {
9 var scope = 'resources/blank.html'; 14 var scope = 'resources/blank.html';
10 var url1 = 'resources/empty.js'; 15 var url1 = 'resources/empty.js';
11 var url2 = 'resources/skip-waiting-installed-worker.js'; 16 var url2 = 'resources/skip-waiting-installed-worker.js';
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 service_worker.postMessage({port: channel.port2}, [channel.port2]); 58 service_worker.postMessage({port: channel.port2}, [channel.port2]);
54 return Promise.all([saw_message, saw_controllerchanged]); 59 return Promise.all([saw_message, saw_controllerchanged]);
55 }) 60 })
56 .then(function() { 61 .then(function() {
57 frame.remove(); 62 frame.remove();
58 return service_worker_unregister_and_done(t, scope); 63 return service_worker_unregister_and_done(t, scope);
59 }); 64 });
60 }, 'Test skipWaiting when a installed worker is waiting'); 65 }, 'Test skipWaiting when a installed worker is waiting');
61 66
62 </script> 67 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698