Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..12485504c09d1c8f08122575c08b4bacd87f5594 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<title>Service Worker: WindowClient.navigate() tests</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="../resources/get-host-info.js"></script> |
+<script src="resources/test-helpers.js"></script> |
+<body> |
+<script> |
+ |
+promise_test(function(test) { |
+ var scope = 'resources/blank.html'; |
+ var script_url = 'resources/test.js'; |
+ var service_worker; |
+ return service_worker_unregister_and_register( |
+ test, script_url, scope) |
+ .then(function(registration) { |
+ service_worker = registration.installing; |
+ return wait_for_state(test, service_worker, 'installed'); |
+ }) |
+ .then(function(state) { |
+ console.log(state); |
+ return with_iframe(scope); |
nhiroki
2016/02/08 04:54:02
This promise is never settled (or settled when the
|
+ }) |
+ .then(function(frame) { |
+ console.log(frame); |
+ service_worker.postMessage('send_message'); |
+ }); |
+}); |
+ |
+</script> |
+</body> |