2 <title>Service Worker responds with .body accessed response.
</title>
4 We put this test in serviceworker/chromium/ directory because the behavior of
5 Response.body is still under the spec discussion.
6 FIXME: When the spec will be released, move this test to serviceworker/
9 <script src=
"../../resources/testharness.js"></script>
10 <script src=
"../../resources/testharnessreport.js"></script>
11 <script src=
"../resources/test-helpers.js"></script>
14 async_test(function(t
) {
15 var SCOPE
= 'resources/respond-with-body-accessed-response-iframe.html';
16 var SCRIPT
= 'resources/respond-with-body-accessed-response-worker.js';
19 service_worker_unregister_and_register(t
, SCRIPT
, SCOPE
)
21 return wait_for_state(t
, reg
.installing
, 'activated');
23 .then(function() { return with_iframe(SCOPE
); })
26 return frame
.contentWindow
.do_test();
30 return service_worker_unregister_and_done(t
, SCOPE
);
32 .catch(unreached_rejection(t
));
33 }, 'Service Worker responds with .body accessed response.');