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

Unified Diff: LayoutTests/inspector/console/console-object-preview-accessors-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-object-preview-accessors-expected.txt
diff --git a/LayoutTests/inspector/console/console-object-preview-accessors-expected.txt b/LayoutTests/inspector/console/console-object-preview-accessors-expected.txt
index b88d41f76f798552aa18f68811ea32208e2578f8..a9dabd8e7fd2d8f4e75b76229cc9eeb0d1ac3db7 100644
--- a/LayoutTests/inspector/console/console-object-preview-accessors-expected.txt
+++ b/LayoutTests/inspector/console/console-object-preview-accessors-expected.txt
@@ -11,8 +11,8 @@ objectWithAccessors
console.log(objectWithAccessors)
console.table(tableObject)
console.dir(objectWithAccessors)
-[(...), (...), undefined × 2, Objectbar: 2foo: 1__proto__: Object, (...), Array[2]0: 11: 2length: 2__proto__: Array[0], (...), "value8", (...)]
-[(...), (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...), 8: "value8", 9: (...), splice: function]0: (...)get 0: function 0() { foo.bar = 1; }1: (...)get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: function 3() {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: function 7() { return [3, 4]; }8: "value8"9: (...)get 9: function 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM:2
+[(...), (...), undefined × 2, Objectbar: 2foo: 1__proto__: Object, (...), Array[2]0: 11: 2length: 2__proto__: Array[0], (...), "value8", (...), splice: function () {}]
+[(...), (...), undefined × 1, (...), Object, (...), Array[2], (...), "value8", (...), splice: function]0: (...)get 0: function 0() { foo.bar = 1; }1: (...)get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: function 3() {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: function 7() { return [3, 4]; }8: "value8"9: (...)get 9: function 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM:2
undefined
Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...), 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get 1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get 9: function 9() { return -Infinity; }__proto__: Object
Object {0: (...), 1: (...), 3: (...), 4: Object, 5: (...), 6: Array[2], 7: (...), 8: function, 9: (...)}0: (...)get 0: function 0() { baz.baz = 3; }1: (...)get 1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: (...)get 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: (...)get 7: function 7() { return [3, 4]; }8: function func8() {}9: (...)get 9: function 9() { return -Infinity; }__proto__: Object VM:2
@@ -33,8 +33,8 @@ objectWithAccessors
console.log(objectWithAccessors)
console.table(tableObject)
console.dir(objectWithAccessors)
-[<exception>, <exception>, undefined × 2, Objectbar: 2foo: 1__proto__: Object, Object, Array[2]0: 11: 2length: 2__proto__: Array[0], Array[2], "value8", NaN]
-[<exception>, <exception>, 3: undefined, 4: Object, 5: Object, 6: Array[2], 7: Array[2], 8: "value8", 9: NaN, splice: function]0: [Exception: ReferenceError: foo is not defined]get 0: function 0() { foo.bar = 1; }1: [Exception: Error: arrayLikeWithAccessors]get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: "value8"9: NaNget 9: function 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM:2
+[<exception>, <exception>, undefined × 2, Objectbar: 2foo: 1__proto__: Object, Object, Array[2]0: 11: 2length: 2__proto__: Array[0], Array[2], "value8", NaN, splice: function () {}]
+[<exception>, <exception>, undefined × 1, undefined, Object, Object, Array[2], Array[2], "value8", NaN, splice: function]0: [Exception: ReferenceError: foo is not defined]get 0: function 0() { foo.bar = 1; }1: [Exception: Error: arrayLikeWithAccessors]get 1: function 1() { throw new Error("arrayLikeWithAccessors"); }set 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: "value8"9: NaNget 9: function 9() { return NaN; }length: 10splice: function () {}__proto__: Object VM:2
undefined
Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: Array[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: baz is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: objectWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: function func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Object
Object {0: <exception>, 1: <exception>, 3: undefined, 4: Object, 5: Object, 6: Array[2], 7: Array[2], 8: function, 9: -Infinity}0: [Exception: ReferenceError: baz is not defined]get 0: function 0() { baz.baz = 3; }1: [Exception: Error: objectWithAccessors]get 1: function 1() { throw new Error("objectWithAccessors"); }set 3: function 3() {}4: Object5: Objectget 5: function 5() { return {afoo: 3, abar: 4}; }6: Array[2]7: Array[2]get 7: function 7() { return [3, 4]; }8: function func8() {}9: -Infinityget 9: function 9() { return -Infinity; }__proto__: Object VM:2

Powered by Google App Engine
This is Rietveld 408576698