Chromium Code Reviews

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

Issue 1057893002: Revert of ServiceWorker: Remove Clients.getAll() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js
index 7b97ace2352a02a66b1b22ed5d82abc2249ad4a7..6211c156b1b273ca47fe9e9f6221f2aeb22180ee 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js
@@ -9,7 +9,7 @@
// Override self.initialize() from sw-test-helpers.js
self.initialize = function() {
- return self.clients.matchAll().then(function(clients) {
+ return self.clients.getAll().then(function(clients) {
clients.forEach(function(c) {
// All clients are iframes but one of them embeds the other ones. We
// want to use that one as the main |client|.
@@ -23,7 +23,7 @@
};
function getNumberOfFocusedClients() {
- return self.clients.matchAll().then(function(clients) {
+ return self.clients.getAll().then(function(clients) {
var focusedClients = 0;
clients.forEach(function(c) {
if (c.focused)

Powered by Google App Engine