| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |