OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script src="resources/test-helpers.js"></script> |
| 5 <body> |
| 6 <script> |
| 7 var worker = 'resources/fetch-event-client-attribute-test-worker.js'; |
| 8 var scope = 'resources/simple.html'; |
| 9 |
| 10 promise_test(function(test) { |
| 11 return service_worker_unregister_and_register(test, worker, scope) |
| 12 .then(function(registration) { |
| 13 return wait_for_state(test, registration.installing, 'activated'); |
| 14 }) |
| 15 .then(function() { return with_iframe(scope); }) |
| 16 .then(function(frame) { |
| 17 assert_equals(frame.contentDocument.body.textContent, |
| 18 'nested', 'frameType for frame should be nested'); |
| 19 frame.remove(); |
| 20 return service_worker_unregister_and_done(test, scope); |
| 21 }); |
| 22 }, 'Service Worker responds to fetch event with client frameType'); |
| 23 |
| 24 </script> |
| 25 </body> |
OLD | NEW |