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

Unified Diff: LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html

Issue 1262893005: Add NotificationEvent.action property in SW events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@actions3_fix
Patch Set: Created 5 years, 4 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
Index: LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
diff --git a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
index ad8f02c5f3871e58fabc955178b7a51ec872a645..8b2156d1dda05d29f87d9e96d2b59a617bd059b5 100644
--- a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
+++ b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
@@ -69,11 +69,10 @@
assert_equals(event.data.command, 'click', 'The notification was expected to be clicked.');
Object.keys(options).forEach(function(key) {
- if (key == 'actions') {
- // TODO(johnme): actions are not yet serialized properly.
- return;
- }
- assert_object_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.');
+ if (key == "actions")
Peter Beverloo 2015/08/04 21:01:23 Single quotes. (Consistency with the file.)
johnme 2015/08/05 11:56:22 Done.
+ assert_object_equals(event.data.notification.actions, options.actions.slice(0, Notification.maxActions));
+ else
+ assert_object_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.');
});
test.done();

Powered by Google App Engine
This is Rietveld 408576698