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 | |
9 var scope = 'resources/simple.html'; | |
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, "top-level", "f rameType 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.
| |
18 frame.remove(); | |
19 return service_worker_unregister_and_done(test, scope); | |
20 }); | |
21 }, 'Service Worker responds to fetch event with client frameType'); | |
22 | |
23 </script> | |
24 </body> | |
OLD | NEW |