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

Unified Diff: LayoutTests/inspector/console/console-format-array-prototype-expected.txt

Issue 143263003: DevTools: Fix console.log for arrays in some corner cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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: LayoutTests/inspector/console/console-format-array-prototype-expected.txt
diff --git a/LayoutTests/inspector/console/console-format-array-prototype-expected.txt b/LayoutTests/inspector/console/console-format-array-prototype-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d0d2113ab015328a3cd98a33dbf5fc9985f38964
--- /dev/null
+++ b/LayoutTests/inspector/console/console-format-array-prototype-expected.txt
@@ -0,0 +1,62 @@
+CONSOLE MESSAGE: line 1:
+CONSOLE MESSAGE: line 1: proto0
+CONSOLE MESSAGE: line 1: proto0,2,3
+CONSOLE MESSAGE: line 1: proto0,,,,,,,,,,proto10,,,,
+CONSOLE MESSAGE: line 1: proto0,,,,,,,,8,,proto10,,,,
+CONSOLE MESSAGE: line 1: 0,,,,,,,,,,10,,,,
+CONSOLE MESSAGE: line 1: proto0,,,4,,,,,,,proto10,,,,
+Tests that console logging dumps array values defined on Array.prototype[].
+
+
+
+> a0
+
+[0: "proto0", 10: "proto10"]
+
+[0: "proto0", 10: "proto10"] VM:1
+
+> a1
+
+["proto0", 10: "proto10"]
+
+["proto0", 10: "proto10"] VM:1
+
+> a2
+
+["proto0", 2, 3, 10: "proto10"]
+
+["proto0", 2, 3, 10: "proto10"] VM:1
+
+> a3
+
+["proto0", undefined × 9, "proto10", undefined × 4]
+
+["proto0", undefined × 9, "proto10", undefined × 4] VM:1
+
+> a4
+
+["proto0", undefined × 7, 8, undefined × 1, "proto10", undefined × 4]
+
+["proto0", undefined × 7, 8, undefined × 1, "proto10", undefined × 4] VM:1
+
+> a5
+
+[0, undefined × 9, 10, undefined × 4]
+
+[0, undefined × 9, 10, undefined × 4] VM:1
+
+> a6
+
+["proto0", undefined × 2, 4, undefined × 6, "proto10", undefined × 4, index0: 0, index1: 1, index2: 2, index3: 3, index4: 4…]
+
+["proto0", undefined × 2, 4, undefined × 6, "proto10", undefined × 4, index0: 0, index1: 1, index2: 2, index3: 3, index4: 4…]
+ 3: 4
+ index0: 0
+ index1: 1
+ index2: 2
+ index3: 3
+ index4: 4
+ index5: 5
+ length: 15
+ __proto__: Array[11] VM:1
+

Powered by Google App Engine
This is Rietveld 408576698