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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/postmessage-to-client.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: postMessage to Client</title> 2 <title>Service Worker: postMessage to Client</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/get-host-info.sub.js"></script> 5 <script src="/common/get-host-info.sub.js"></script>
6 <script src="resources/test-helpers.sub.js"></script> 6 <script src="resources/test-helpers.sub.js"></script>
7 <script> 7 <script>
8 var frame; 8 var frame;
9 var t = async_test('postMessage from ServiceWorker to Client'); 9 var t = async_test('postMessage from ServiceWorker to Client');
10 t.step(function() { 10 t.step(function() {
11 var scope = 'resources/blank.html'; 11 var scope = 'resources/blank.html';
12 var host_info = get_host_info(); 12 var host_info = get_host_info();
13 var sw; 13 var sw;
14 service_worker_unregister_and_register( 14 service_worker_unregister_and_register(
15 t, 'resources/postmessage-to-client-worker.js', scope) 15 t, 'resources/postmessage-to-client-worker.js', scope)
(...skipping 27 matching lines...) Expand all
43 assert_array_equals(result, expected, 43 assert_array_equals(result, expected,
44 'Worker should post back expected messages.'); 44 'Worker should post back expected messages.');
45 frame.remove(); 45 frame.remove();
46 service_worker_unregister_and_done(t, scope); 46 service_worker_unregister_and_done(t, scope);
47 } else { 47 } else {
48 result.push(message); 48 result.push(message);
49 } 49 }
50 } 50 }
51 }); 51 });
52 </script> 52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698