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

Side by Side Diff: LayoutTests/http/tests/serviceworker/postmessage-cross-process.html

Issue 729923004: Add some tests to make sure message ports properly queue up message. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cross_process_messaging_with_terminate
Patch Set: Created 6 years, 1 month 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 across processes</title> 2 <title>Service Worker: postMessage across processes</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.js"></script>
6 <script> 6 <script>
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.setCanOpenWindows(); 8 testRunner.setCanOpenWindows();
9 } 9 }
10 10
(...skipping 27 matching lines...) Expand all
38 'Acking value: 2', 38 'Acking value: 2',
39 ]; 39 ];
40 40
41 function onMessage(e) { 41 function onMessage(e) {
42 var result = e.data; 42 var result = e.data;
43 assert_array_equals(result, expected, 43 assert_array_equals(result, expected,
44 'Worker should post back expected values.'); 44 'Worker should post back expected values.');
45 t.done(); 45 t.done();
46 } 46 }
47 }, 'postMessage MessagePorts from client to SW in a different process'); 47 }, 'postMessage MessagePorts from client to SW in a different process');
48
48 </script> 49 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698