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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/geofencing/event_triggering.html

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove all testharness-helpers.js references Created 4 years, 7 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>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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698