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