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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js

Issue 2164763002: DevTools: bring back properties defined on prototype to object dumps in extension tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/extensions/extensions-api-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js b/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
index b331e20786d58a9729c8d0e69e4cf3a8feb85d6b..5bd6c2e0b5cffd5a87575315c98718cb53975ef5 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resources/extension-main.js
@@ -12,7 +12,9 @@ function dumpObject(object, nondeterministicProps, prefix, firstLinePrefix)
prefix = prefix || "";
firstLinePrefix = firstLinePrefix || prefix;
output(firstLinePrefix + "{");
- var propertyNames = Object.keys(object);
+ var propertyNames = [];
+ for (var property in object)
+ propertyNames.push(property);
propertyNames.sort();
for (var i = 0; i < propertyNames.length; ++i) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/extensions/extensions-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698