| 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 2775be75cbdb7223fee60552074ea8ea70375d27..f44a63809992b766294359e115c8668f954c0f52 100644
|
| --- a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
|
| +++ b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html
|
| @@ -68,11 +68,12 @@
|
| // set on the Notification object are as expected.
|
| assert_equals(event.data.command, 'click', 'The notification was expected to be clicked.');
|
|
|
| + options.actions = options.actions.slice(0, Notification.maxActions);
|
| Object.keys(options).forEach(function(key) {
|
| - if (key == 'actions')
|
| - assert_object_equals(event.data.notification.actions, options.actions.slice(0, Notification.maxActions));
|
| - else
|
| + if (typeof options[key] == 'object')
|
| assert_object_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.');
|
| + else
|
| + assert_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.');
|
| });
|
|
|
| test.done();
|
|
|