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

Unified Diff: test/inspector/runtime/property-on-console-proto.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
Index: test/inspector/runtime/property-on-console-proto.js
diff --git a/test/inspector/runtime/property-on-console-proto.js b/test/inspector/runtime/property-on-console-proto.js
index c3fd331b12378fda310991273c6315b32c662664..001dd00291cd06ebeb9e6784d1aafdddfe83aae9 100644
--- a/test/inspector/runtime/property-on-console-proto.js
+++ b/test/inspector/runtime/property-on-console-proto.js
@@ -4,7 +4,7 @@
print("Tests that property defined on console.__proto__ doesn't observable on other Objects.");
-InspectorTest.evaluateInPage(`
+InspectorTest.addScript(`
function testFunction()
{
var amountOfProperties = 0;
@@ -16,11 +16,10 @@ function testFunction()
return amountOfProperties;
}`);
-InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testFunction()" }, dumpResult);
+Protocol.Runtime.evaluate({ "expression": "testFunction()" }).then(dumpResult);
function dumpResult(result)
{
- result.id = 0;
- InspectorTest.logObject(result);
+ InspectorTest.logMessage(result);
InspectorTest.completeTest();
}
« no previous file with comments | « test/inspector/runtime/get-properties-preview.js ('k') | test/inspector/runtime/property-on-console-proto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698