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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/misc/performance-entry-serializer.html

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: fix web-platform-tests Created 3 years, 5 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: 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);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698