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