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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html

Issue 2596133002: Reland of DevTools: merge array formatting logic (Closed)
Patch Set: test Created 3 years, 12 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/inspector/console/console-object-preview.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html b/third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html
index eea71366b1d5c300c2c6b5e8c15a1670a8bb62e8..6ed10e6cd3ae7e66dc11e433721940fbce9a45f7 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-object-preview.html
@@ -34,6 +34,20 @@ function logToConsole()
}
console.log(arrayWithManyProperties);
+ console.log("Array with gaps and overflow");
+ var arrayWithGapsAndOverflow = [];
+ for (var i = 0; i < 101; i++) {
+ arrayWithGapsAndOverflow[57 * i + 32] = i;
+ }
+ console.log(arrayWithGapsAndOverflow);
+
+ console.log("Array with gaps without overflow");
+ var arrayWithGapsWithoutOverflow = [];
+ for (var i = 0; i < 99; i++) {
+ arrayWithGapsWithoutOverflow[57 * i + 32] = i;
+ }
+ console.log(arrayWithGapsWithoutOverflow);
+
console.log("Object with proto");
var objectWithProto = { d: 1 };
objectWithProto.__proto__ = object;

Powered by Google App Engine
This is Rietveld 408576698