Index: LayoutTests/http/tests/serviceworker/client-focus.html |
diff --git a/LayoutTests/http/tests/serviceworker/postmessage-to-client.html b/LayoutTests/http/tests/serviceworker/client-focus.html |
similarity index 81% |
copy from LayoutTests/http/tests/serviceworker/postmessage-to-client.html |
copy to LayoutTests/http/tests/serviceworker/client-focus.html |
index 2f55dcc6cff86c85983b79d6e672ee94b1f6f33f..71d677c91c39a9990b2f5459d0017ae0fe2980eb 100644 |
--- a/LayoutTests/http/tests/serviceworker/postmessage-to-client.html |
+++ b/LayoutTests/http/tests/serviceworker/client-focus.html |
@@ -1,14 +1,14 @@ |
<!DOCTYPE html> |
-<title>Service Worker: postMessage to ServiceWorkerClient</title> |
+<title>Service Worker: ServiceWorkerClient.focus()</title> |
<script src="../resources/testharness.js"></script> |
<script src="../resources/testharnessreport.js"></script> |
<script src="resources/test-helpers.js"></script> |
<script> |
-var t = async_test('postMessage from ServiceWorker to ServiceWorkerClient'); |
+var t = async_test('Test ServiceWorkerClient.focus()'); |
t.step(function() { |
var scope = 'resources/blank.html' |
service_worker_unregister_and_register( |
- t, 'resources/postmessage-to-client-worker.js', scope) |
+ t, 'resources/client-focus.js', scope) |
.then(function(registration) { |
return wait_for_update(t, registration); |
}) |
@@ -24,7 +24,7 @@ t.step(function() { |
.catch(unreached_rejection(t)); |
var result = []; |
- var expected = ['Sending message via clients']; |
+ var expected = ['focus() is present', 'focus() succeeded with true']; |
function onMessage(e) { |
var message = e.data; |