| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Tests registering regions and receiving events.</title> | 2 <title>Tests registering regions and receiving events.</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/testharness-helpers.js"></script> | |
| 6 <script src="../serviceworker/resources/test-helpers.js"></script> | 5 <script src="../serviceworker/resources/test-helpers.js"></script> |
| 7 <script> | 6 <script> |
| 8 var sw_url = 'resources/worker-passes-events-back.js'; | 7 var sw_url = 'resources/worker-passes-events-back.js'; |
| 9 var sw_scope = 'resources/service-worker-scope' + window.location.pathname; | 8 var sw_scope = 'resources/service-worker-scope' + window.location.pathname; |
| 10 | 9 |
| 11 test(function(test) { | 10 test(function(test) { |
| 12 assert_true(window.testRunner instanceof Object); | 11 assert_true(window.testRunner instanceof Object); |
| 13 test.done(); | 12 test.done(); |
| 14 }, 'window.testRunner is required for the following tests.'); | 13 }, 'window.testRunner is required for the following tests.'); |
| 15 | 14 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 })).then(test.step_func(function() { | 63 })).then(test.step_func(function() { |
| 65 return wait_for_reply(test, port); | 64 return wait_for_reply(test, port); |
| 66 })).then(test.step_func(function(reply) { | 65 })).then(test.step_func(function(reply) { |
| 67 assert_equals(reply.event, 'geofenceenter'); | 66 assert_equals(reply.event, 'geofenceenter'); |
| 68 assert_equals(reply.id, 'bigregion'); | 67 assert_equals(reply.id, 'bigregion'); |
| 69 return service_worker_unregister(test, sw_scope); | 68 return service_worker_unregister(test, sw_scope); |
| 70 })); | 69 })); |
| 71 }, 'Tests basic enter and leave events.'); | 70 }, 'Tests basic enter and leave events.'); |
| 72 | 71 |
| 73 </script> | 72 </script> |
| OLD | NEW |