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

Side by Side Diff: LayoutTests/http/tests/fetch/script-tests/fetch.js

Issue 1211623005: Unify multiple sequential_promise_test definitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update fetch templates and remove new duplicate of this method Created 5 years, 6 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 if (self.importScripts) { 1 if (self.importScripts) {
2 importScripts('../resources/fetch-test-helpers.js'); 2 importScripts('../resources/fetch-test-helpers.js');
3 } 3 }
4 4
5 sequential_promise_test(function(t) { 5 sequential_promise_test(function(t) {
6 return fetch('http://') 6 return fetch('http://')
7 .then( 7 .then(
8 t.unreached_func('fetch of invalid URL must fail'), 8 t.unreached_func('fetch of invalid URL must fail'),
9 function() {}); 9 function() {});
10 }, 'Fetch invalid URL'); 10 }, 'Fetch invalid URL');
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 test(function(t) { 201 test(function(t) {
202 function runInfiniteFetchLoop() { 202 function runInfiniteFetchLoop() {
203 fetch('dummy.html') 203 fetch('dummy.html')
204 .then(function() { runInfiniteFetchLoop(); }); 204 .then(function() { runInfiniteFetchLoop(); });
205 } 205 }
206 runInfiniteFetchLoop(); 206 runInfiniteFetchLoop();
207 }, 207 },
208 'Destroying the execution context while fetch is happening should not ' + 208 'Destroying the execution context while fetch is happening should not ' +
209 'cause a crash.'); 209 'cause a crash.');
210 210
211 sequential_promise_test_done();
212 done(); 211 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698