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

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

Issue 512003003: DevTools: Show preview in console of ES6 Map, Set, WeakMap and WeakSet entries. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix LocalJSON object description Created 6 years, 4 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-es6-expected.txt
diff --git a/LayoutTests/inspector/console/console-format-es6-expected.txt b/LayoutTests/inspector/console/console-format-es6-expected.txt
index 995a0feb2c8474166fccd196151478ce5a0acb58..ac74f8b519ef80e8efc980860da79e247c0850c8 100644
--- a/LayoutTests/inspector/console/console-format-es6-expected.txt
+++ b/LayoutTests/inspector/console/console-format-es6-expected.txt
@@ -14,6 +14,16 @@ CONSOLE MESSAGE: line 11: [object Set]
CONSOLE MESSAGE: line 12: [object Set]
CONSOLE MESSAGE: line 11: [object WeakSet]
CONSOLE MESSAGE: line 12: [object WeakSet]
+CONSOLE MESSAGE: line 11: [object Map]
+CONSOLE MESSAGE: line 12: [object Map]
+CONSOLE MESSAGE: line 11: [object Map]
+CONSOLE MESSAGE: line 12: [object Map]
+CONSOLE MESSAGE: line 11: [object Set]
+CONSOLE MESSAGE: line 12: [object Set]
+CONSOLE MESSAGE: line 11: [object Set]
+CONSOLE MESSAGE: line 12: [object Set]
+CONSOLE MESSAGE: line 11: [object Map]
+CONSOLE MESSAGE: line 12: [object Map]
Tests that console properly displays information about ES6 features.
console-format-es6.html:11 Promise {[[PromiseStatus]]: "rejected", [[PromiseValue]]: -0}
@@ -37,8 +47,10 @@ console-format-es6.html:12 [Symbol(a)]
__proto__: Array[0]
globals[2]
Symbol(a)
-console-format-es6.html:11 Object {a: Symbol(), Symbol(): 1, Symbol(a): 2}
+console-format-es6.html:11 Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}
a: Symbol()
+ getter: (...)
+ get getter: function getter() {}
Symbol(): 1
Symbol(a): 2
__proto__: Object
@@ -47,37 +59,106 @@ console-format-es6.html:12 [Object]
length: 1
__proto__: Array[0]
globals[3]
-Object {a: Symbol(), Symbol(): 1, Symbol(a): 2}
+Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}
a: Symbol()
+ getter: (...)
+ get getter: function getter() {}
Symbol(): 1
Symbol(a): 2
__proto__: Object
-console-format-es6.html:11 Map
+console-format-es6.html:11 Map {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2} => Object {foo: 1}}
+ size: (...)
+ __proto__: Map
+ <entries>
console-format-es6.html:12 [Map]
0: Map
length: 1
__proto__: Array[0]
globals[4]
-Map
-console-format-es6.html:11 WeakMap
+Map {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2} => Object {foo: 1}}
+ size: (...)
+ __proto__: Map
+ <entries>
+console-format-es6.html:11 WeakMap {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2} => Object {foo: 1}}
+ __proto__: WeakMap
+ <entries>
console-format-es6.html:12 [WeakMap]
0: WeakMap
length: 1
__proto__: Array[0]
globals[5]
-WeakMap
-console-format-es6.html:11 Set
+WeakMap {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2} => Object {foo: 1}}
+ __proto__: WeakMap
+ <entries>
+console-format-es6.html:11 Set {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}}
+ size: (...)
+ __proto__: Set
+ <entries>
console-format-es6.html:12 [Set]
0: Set
length: 1
__proto__: Array[0]
globals[6]
-Set
-console-format-es6.html:11 WeakSet
+Set {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}}
+ size: (...)
+ __proto__: Set
+ <entries>
+console-format-es6.html:11 WeakSet {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}}
+ __proto__: WeakSet
+ <entries>
console-format-es6.html:12 [WeakSet]
0: WeakSet
length: 1
__proto__: Array[0]
globals[7]
-WeakSet
+WeakSet {Object {getter: (...), a: Symbol(), Symbol(): 1, Symbol(a): 2}}
+ __proto__: WeakSet
+ <entries>
+console-format-es6.html:11 Map {Map {} => WeakMap {}}
+console-format-es6.html:12 [Map]
+ 0: Map
+ length: 1
+ __proto__: Array[0]
+globals[8]
+Map {Map {} => WeakMap {}}
+console-format-es6.html:11 Map {Map {…} => WeakMap {…}}
+ size: (...)
+ __proto__: Map
+ <entries>
+console-format-es6.html:12 [Map]
+ 0: Map
+ length: 1
+ __proto__: Array[0]
+globals[9]
+Map {Map {…} => WeakMap {…}}
+ size: (...)
+ __proto__: Map
+ <entries>
+console-format-es6.html:11 Set {WeakSet {}}
+console-format-es6.html:12 [Set]
+ 0: Set
+ length: 1
+ __proto__: Array[0]
+globals[10]
+Set {WeakSet {}}
+console-format-es6.html:11 Set {WeakSet {…}}
+ size: (...)
+ __proto__: Set
+ <entries>
+console-format-es6.html:12 [Set]
+ 0: Set
+ length: 1
+ __proto__: Array[0]
+globals[11]
+Set {WeakSet {…}}
+ size: (...)
+ __proto__: Set
+ <entries>
+console-format-es6.html:11 Map {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, Object {foo: "from"} => Object {foo: "to"}}
+console-format-es6.html:12 [Map]
+ 0: Map
+ length: 1
+ __proto__: Array[0]
+globals[12]
+Map {" from str " => " to str ", undefined => undefined, null => null, 42 => 42, Object {foo: "from"} => Object {foo: "to"}}

Powered by Google App Engine
This is Rietveld 408576698