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: test/inspector/runtime/length-or-size-description.js

Issue 2770583002: [inspector] description for weak collections should not contain size (Closed)
Patch Set: added to protocol Created 3 years, 9 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: test/inspector/runtime/length-or-size-description.js
diff --git a/test/inspector/runtime/length-or-size-description.js b/test/inspector/runtime/length-or-size-description.js
index e2c874f0c1c3b4211f3b45087f91d9860dcb13ab..b27b4b3651dee65fcfa1e0b970dbdecd51d2ed6b 100644
--- a/test/inspector/runtime/length-or-size-description.js
+++ b/test/inspector/runtime/length-or-size-description.js
@@ -12,7 +12,10 @@ Promise.all([
testExpression("new Array()"),
testExpression("new Array(2)"),
testExpression("new Uint8Array()"),
- testExpression("new Uint8Array(2)")
+ testExpression("new Uint8Array(2)"),
+ // WeakMap and WeakSet should not have size in description.
+ testExpression("new WeakMap([[{}, 42]])"),
+ testExpression("new WeakSet([{}])")
]).then(() => InspectorTest.completeTest());
function testExpression(expression) {
« no previous file with comments | « src/inspector/v8-injected-script-host.cc ('k') | test/inspector/runtime/length-or-size-description-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698