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

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

Issue 866043005: [ServiceWorker] Tests for WindowClient.focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_openwindow_tests
Patch Set: review comment Created 5 years, 10 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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/client-focus.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/client-focus.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/client-focus.js b/LayoutTests/http/tests/serviceworker/resources/client-focus.js
deleted file mode 100644
index d8c06ec50d1cc146e814385e7765fa00ee55614e..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/serviceworker/resources/client-focus.js
+++ /dev/null
@@ -1,15 +0,0 @@
-self.onmessage = function(e) {
- self.clients.getAll().then(function(clients) {
- clients.forEach(function(client) {
- if (('focus' in client) && (typeof(client.focus) == 'function'))
- client.postMessage('focus() is present');
- client.focus().then(function(result) {
- client.postMessage('focus() succeeded with ' + result);
- client.postMessage('quit');
- }, function(e) {
- client.postMessage('focus() failed with ' + e.name);
- client.postMessage('quit');
- });
- });
- });
-}
« no previous file with comments | « LayoutTests/http/tests/serviceworker/client-focus.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698