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

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

Issue 1056973003: Revert of 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. 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/chromium/resources/notificationclick-can-openwindow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js b/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js
index 58e8d297b2f6db37fd7af1debc1c7d48aaae533e..d2cbc78a961e0b5c05acd9cf9c41363b37b59bdb 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js
@@ -21,7 +21,7 @@
function testOutOfStackOutOfWaitUntil() {
synthesizeNotificationClick().then(function() {
- self.clients.getAll().then(function() {
+ self.clients.matchAll().then(function() {
client.focus().catch(function() {
self.postMessage('focus() in notificationclick outside of waitUntil not in stack failed');
}).then(runNextTestOrQuit);
@@ -31,7 +31,7 @@
function testInWaitUntilAsync() {
synthesizeNotificationClick().then(function(e) {
- e.waitUntil(self.clients.getAll().then(function() {
+ e.waitUntil(self.clients.matchAll().then(function() {
return client.focus().then(function() {
self.postMessage('focus() in notificationclick\'s waitUntil suceeded');
}).then(runNextTestOrQuit);
@@ -41,7 +41,7 @@
function testDoubleCallInWaitUntilAsync() {
synthesizeNotificationClick().then(function(e) {
- e.waitUntil(self.clients.getAll().then(function() {
+ e.waitUntil(self.clients.matchAll().then(function() {
return client.focus().then(function() {
return client.focus();
}).catch(function() {
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698