| Index: third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html b/third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html
|
| index 9ae14b8f78b9bdb965338f6f6e0d66c87d041fb9..9cbb1d890a566b89b30dbc05e2585a05edad6746 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html
|
| @@ -14,7 +14,11 @@ test(function() {
|
| var serialized = JSON.parse(JSON.stringify(entry));
|
| for (var attr in entry) {
|
| if (typeof entry[attr] != 'function') {
|
| - assert_equals(serialized[attr], entry[attr], entry.constructor.name + '.' + attr);
|
| + var assertMethod = assert_equals
|
| + if (Array.isArray(serialized[attr]) && Array.isArray(entry[attr])) {
|
| + assertMethod = assert_array_equals
|
| + }
|
| + assertMethod(serialized[attr], entry[attr], entry.constructor.name + '.' + attr);
|
| }
|
| }
|
| }
|
|
|