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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.fetch-event-async-respond-with.html

Issue 2836233002: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Extend "-expected.txt" file with reference to new sub-test Created 3 years, 7 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
3 available in Web Platform Tests is known to cause timeout errors in the
4 Chromium automated build system. They should be maintained only to preserve
5 test converage until the corresponding versions in Web Platform Tests can be
6 made to pass consistently. See https://crbug.com/658997 -->
2 <script src="../resources/testharness.js"></script> 7 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 8 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/test-helpers.js"></script> 9 <script src="resources/test-helpers.js"></script>
5 <script> 10 <script>
6 promise_test(function(t) { 11 promise_test(function(t) {
7 var script = 'resources/fetch-event-async-respond-with-worker.js'; 12 var script = 'resources/fetch-event-async-respond-with-worker.js';
8 var scope = 'resources/simple.html'; 13 var scope = 'resources/simple.html';
9 14
10 return service_worker_unregister_and_register(t, script, scope) 15 return service_worker_unregister_and_register(t, script, scope)
11 .then(function(registration) { 16 .then(function(registration) {
(...skipping 12 matching lines...) Expand all
24 29
25 worker.postMessage({port: channel.port2}, [channel.port2]); 30 worker.postMessage({port: channel.port2}, [channel.port2]);
26 return saw_message; 31 return saw_message;
27 }) 32 })
28 .then(function(message) { 33 .then(function(message) {
29 assert_equals(message, 'PASS'); 34 assert_equals(message, 'PASS');
30 return service_worker_unregister_and_done(t, scope); 35 return service_worker_unregister_and_done(t, scope);
31 }) 36 })
32 }, 'Calling respondWith asynchronously throws an exception'); 37 }, 'Calling respondWith asynchronously throws an exception');
33 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698