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

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

Issue 2763113002: Upstream service worker postMessage tests to WPT (Closed)
Patch Set: 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>ServiceWorkerGlobalScope: postMessage</title> 2 <title>ServiceWorkerGlobalScope: postMessage</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.js'></script> 5 <script src='../resources/test-helpers.sub.js'></script>
6 <script> 6 <script>
7 7
8 promise_test(function(t) { 8 promise_test(function(t) {
9 var script = 'resources/postmessage-loopback-worker.js'; 9 var script = 'resources/postmessage-loopback-worker.js';
10 var scope = 'resources/scope/postmessage-loopback'; 10 var scope = 'resources/scope/postmessage-loopback';
11 var registration; 11 var registration;
12 12
13 return service_worker_unregister_and_register(t, script, scope) 13 return service_worker_unregister_and_register(t, script, scope)
14 .then(function(r) { 14 .then(function(r) {
15 registration = r; 15 registration = r;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return saw_message; 67 return saw_message;
68 }) 68 })
69 .then(function(result) { 69 .then(function(result) {
70 assert_equals(result, 'OK'); 70 assert_equals(result, 'OK');
71 frame.remove(); 71 frame.remove();
72 return service_worker_unregister_and_done(t, scope); 72 return service_worker_unregister_and_done(t, scope);
73 }); 73 });
74 }, 'Post messages among service workers'); 74 }, 'Post messages among service workers');
75 75
76 </script> 76 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/resources/postmessage-loopback-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698