OLD | NEW |
1 importScripts('worker-test-harness.js'); | 1 importScripts('worker-testharness.js'); |
| 2 importScripts('../../resources/testharness-helpers.js'); |
2 importScripts('test-helpers.js'); | 3 importScripts('test-helpers.js'); |
3 | 4 |
4 var URL = 'https://www.example.com/test.html'; | 5 var URL = 'https://www.example.com/test.html'; |
5 | 6 |
6 function size(headers) { | 7 function size(headers) { |
7 var count = 0; | 8 var count = 0; |
8 for (var header of headers) { | 9 for (var header of headers) { |
9 ++count; | 10 ++count; |
10 } | 11 } |
11 return count; | 12 return count; |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 result, expected_body, | 439 result, expected_body, |
439 'Creating a Request with FormData body should success.'); | 440 'Creating a Request with FormData body should success.'); |
440 }) | 441 }) |
441 .then(function() { | 442 .then(function() { |
442 t.done(); | 443 t.done(); |
443 }) | 444 }) |
444 .catch(unreached_rejection(t)); | 445 .catch(unreached_rejection(t)); |
445 assert_true(request.bodyUsed, | 446 assert_true(request.bodyUsed, |
446 'bodyUsed must be true after calling text()'); | 447 'bodyUsed must be true after calling text()'); |
447 }, 'Request body test in ServiceWorkerGlobalScope'); | 448 }, 'Request body test in ServiceWorkerGlobalScope'); |
OLD | NEW |