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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/fetch-worker.js

Issue 647493002: Move promise_test and assert_promise_rejects out of worker-test-harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing_serviceworker
Patch Set: rebase Created 6 years, 2 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 importScripts('worker-test-harness.js'); 1 importScripts('worker-testharness.js');
2 importScripts('test-helpers.js'); 2 importScripts('test-helpers.js');
3 3
4 async_test(function(t) { 4 async_test(function(t) {
5 fetch('http://') 5 fetch('http://')
6 .then( 6 .then(
7 unreached_rejection(t, 'fetch of invalid URL must fail'), 7 unreached_rejection(t, 'fetch of invalid URL must fail'),
8 function(e) { 8 function(e) {
9 assert_equals(e.message, 'Invalid URL'); 9 assert_equals(e.message, 'Invalid URL');
10 t.done(); 10 t.done();
11 }) 11 })
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 test(function(t) { 142 test(function(t) {
143 function runInfiniteFetchLoop() { 143 function runInfiniteFetchLoop() {
144 fetch('dummy.html') 144 fetch('dummy.html')
145 .then(function() { runInfiniteFetchLoop(); }); 145 .then(function() { runInfiniteFetchLoop(); });
146 } 146 }
147 runInfiniteFetchLoop(); 147 runInfiniteFetchLoop();
148 }, 148 },
149 'Destroying the execution context while fetch is happening should not ' + 149 'Destroying the execution context while fetch is happening should not ' +
150 'cause a crash.'); 150 'cause a crash.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698