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

Unified Diff: LayoutTests/http/tests/serviceworker/client-focus.html

Issue 779563003: [POC-WIP] Link window focus tokens with ExecutionContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/client-focus.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/client-focus.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698