Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html |
| diff --git a/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html b/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a1d1cf39d0e88d8caa80610336eee64faafc0a9a |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/serviceworker/fetch-event-client-attribute.html |
| @@ -0,0 +1,24 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<script src="resources/test-helpers.js"></script> |
| +<body> |
| +<script> |
| +var worker = 'resources/fetch-event-client-attribute-test-worker.js'; |
| + |
| +var scope = 'resources/simple.html'; |
| +promise_test(function(test) { |
| + return service_worker_unregister_and_register(test, worker, scope) |
| + .then(function(registration) { |
| + return wait_for_state(test, registration.installing, 'activated'); |
| + }) |
| + .then(function() { return with_iframe(scope); }) |
| + .then(function(frame) { |
| + assert_equals(frame.contentDocument.body.textContent, "top-level", "frameType should be top-level"); |
|
falken
2015/05/08 22:20:25
ServiceWorker testing style is to single-quote Jav
Paritosh Kumar
2015/05/12 11:52:28
Thanks, Done in new cl.
|
| + frame.remove(); |
| + return service_worker_unregister_and_done(test, scope); |
| + }); |
| + }, 'Service Worker responds to fetch event with client frameType'); |
| + |
| +</script> |
| +</body> |