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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/request-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('../../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
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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698