| 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));
|
| }
|
|
|
|
|