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

Unified Diff: LayoutTests/inspector/console/console-format-es6.html

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.html
diff --git a/LayoutTests/inspector/console/console-format-es6.html b/LayoutTests/inspector/console/console-format-es6.html
index cf2bae4de3039878d3cb6c35f148883073ab0b88..cf242636ea2104e02361b4c848a6804615126f4b 100644
--- a/LayoutTests/inspector/console/console-format-es6.html
+++ b/LayoutTests/inspector/console/console-format-es6.html
@@ -16,7 +16,9 @@ function onload()
{
var smb1 = Symbol();
var smb2 = Symbol("a");
- var obj = {};
+ var obj = {
+ get getter() {}
+ };
obj[Symbol()] = 1;
obj[smb2] = 2;
obj["a"] = smb1;
@@ -25,18 +27,32 @@ function onload()
var weakMap = new WeakMap();
map.set(obj, {foo: 1});
weakMap.set(obj, {foo: 1});
- weakMap.set(smb1, {foo: 2});
- weakMap.set(smb2, {foo: 3});
var set = new Set();
var weakSet = new WeakSet();
set.add(obj);
weakSet.add(obj);
- weakSet.add(smb1);
- weakSet.add(smb2);
+
+ var mapMap0 = new Map();
+ mapMap0.set(new Map(), new WeakMap());
+ var mapMap = new Map();
+ mapMap.set(map, weakMap);
+
+ var setSet0 = new Set();
+ setSet0.add(new WeakSet());
+ var setSet = new Set();
+ setSet.add(weakSet);
+
+ var bigmap = new Map();
+ bigmap.set(" from str ", " to str ");
+ bigmap.set(undefined, undefined);
+ bigmap.set(null, null);
+ bigmap.set(42, 42);
+ bigmap.set({foo:"from"}, {foo:"to"});
globals = [
- Promise.reject(-0), smb1, smb2, obj, map, weakMap, set, weakSet
+ Promise.reject(-0), smb1, smb2, obj, map, weakMap, set, weakSet,
+ mapMap0, mapMap, setSet0, setSet, bigmap
];
runTest();

Powered by Google App Engine
This is Rietveld 408576698