Chromium Code Reviews| 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 5bf4edf0021dd04b5f0c9be24ecb87ab4db69e2d..1da6087197c003ae65c07fb11e1889a9a55406ae 100644 |
| --- a/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html |
| +++ b/LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html |
| @@ -33,7 +33,8 @@ |
| string: '\uDFFF\u0000\uDBFF', |
| scalar: true }, |
| 12.15 |
| - ] |
| + ], |
| + actions: [{title: "Action 1"}, {title: "Action 2"}, {title: "Action 3"}] |
| }; |
| testRunner.setPermission('notifications', 'granted', location.origin, location.origin); |
| @@ -66,6 +67,11 @@ |
| 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. |
| + assert_equals(event.data.notification.actions.length, 0); |
|
Peter Beverloo
2015/07/30 16:24:07
This doesn't look like a great idea. Serializing a
johnme
2015/07/31 15:10:10
Ok, I removed the assert and now just return (with
|
| + return; |
| + } |
| assert_object_equals(event.data.notification[key], options[key], 'The ' + key + ' field must be the same.'); |
| }); |