Index: test/inspector/runtime/get-properties-preview.js |
diff --git a/test/inspector/runtime/get-properties-preview.js b/test/inspector/runtime/get-properties-preview.js |
index 45acd9b642b3f4e264a683d32d8042f00b3ef393..7cc81bc486fa1e6893a91ec402bc6fa190e12269 100644 |
--- a/test/inspector/runtime/get-properties-preview.js |
+++ b/test/inspector/runtime/get-properties-preview.js |
@@ -2,12 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-InspectorTest.sendCommand("Runtime.evaluate", { "expression": "({p1: {a:1}, p2: {b:'foo', bb:'bar'}})" }, callbackEvaluate); |
+Protocol.Runtime.evaluate({ "expression": "({p1: {a:1}, p2: {b:'foo', bb:'bar'}})" }).then(callbackEvaluate); |
function callbackEvaluate(result) |
{ |
- InspectorTest.sendCommand("Runtime.getProperties", { "objectId": result.result.result.objectId, "ownProperties": true }, callbackGetProperties.bind(null, false)); |
- InspectorTest.sendCommand("Runtime.getProperties", { "objectId": result.result.result.objectId, "ownProperties": true, "generatePreview": true }, callbackGetProperties.bind(null, true)); |
+ Protocol.Runtime.getProperties({ "objectId": result.result.result.objectId, "ownProperties": true }).then(callbackGetProperties.bind(null, false)); |
+ Protocol.Runtime.getProperties({ "objectId": result.result.result.objectId, "ownProperties": true, "generatePreview": true }).then(callbackGetProperties.bind(null, true)); |
} |
function callbackGetProperties(completeTest, result) |