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

Unified Diff: test/inspector/runtime/set-or-map-entries.js

Issue 2390733002: [inspector] Make InspectorTest.sendCommand* private (Closed)
Patch Set: addressed comments Created 4 years, 2 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
« no previous file with comments | « test/inspector/runtime/run-script-async-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/runtime/set-or-map-entries.js
diff --git a/test/inspector/runtime/set-or-map-entries.js b/test/inspector/runtime/set-or-map-entries.js
index ccefb794d6cd00a0f081daa09b7eb1f7a1e1f6d4..33ba7c0547f1763f3ac37cb135e6c8f64456b8af 100644
--- a/test/inspector/runtime/set-or-map-entries.js
+++ b/test/inspector/runtime/set-or-map-entries.js
@@ -4,7 +4,7 @@
print("Test that Runtime.getProperties doesn't truncate set and map entries in internalProperties.")
-InspectorTest.evaluateInPage(`
+InspectorTest.addScript(`
function createSet(size) {
var s = new Set();
var a = {};
@@ -22,8 +22,8 @@ InspectorTest.evaluateInPage(`
}
`);
-InspectorTest.sendCommand("Debugger.enable");
-InspectorTest.sendCommand("Runtime.enable");
+Protocol.Debugger.enable();
+Protocol.Runtime.enable();
testExpression("createSet(10)")
.then(() => testExpression("createSet(1000)"))
@@ -33,8 +33,8 @@ testExpression("createSet(10)")
function testExpression(expression)
{
- return InspectorTest.sendCommandPromise("Runtime.evaluate", { "expression": expression})
- .then(result => InspectorTest.sendCommandPromise("Runtime.getProperties", { ownProperties: true, objectId: result.result.result.objectId }))
+ return Protocol.Runtime.evaluate({ "expression": expression})
+ .then(result => Protocol.Runtime.getProperties({ ownProperties: true, objectId: result.result.result.objectId }))
.then(message => dumpEntriesDescription(expression, message));
}
« no previous file with comments | « test/inspector/runtime/run-script-async-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698