Index: LayoutTests/http/tests/notifications/notification-data-property.html |
diff --git a/LayoutTests/http/tests/notifications/notification-data-property.html b/LayoutTests/http/tests/notifications/notification-data-property.html |
index d33d85ac14183bb5a9ae55eefb2aba9b0d58e45f..92a8d89491f877504df30ac3d1a0211ab25be8e2 100644 |
--- a/LayoutTests/http/tests/notifications/notification-data-property.html |
+++ b/LayoutTests/http/tests/notifications/notification-data-property.html |
@@ -14,10 +14,8 @@ |
function assertNotificationDataReflects(value) { |
var notification = new Notification('Title', { data: value }); |
- if (Array.isArray(value)) |
+ if (typeof value === 'object') |
assert_object_equals(notification.data, value); |
- else if (typeof value === 'object') |
- assert_array_equals(notification.data, value); |
else |
assert_equals(notification.data, value); |
} |