Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html

Issue 1643823003: bug? Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698