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

Unified Diff: test/inspector/runtime/console-log-doesnt-run-microtasks.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/console-log-doesnt-run-microtasks.js
diff --git a/test/inspector/runtime/console-log-doesnt-run-microtasks.js b/test/inspector/runtime/console-log-doesnt-run-microtasks.js
index dee7999b242b336c8ce04d75776033331a1633ec..b7a87391e0f14279d3c58e243aea39a48bd7b1b1 100644
--- a/test/inspector/runtime/console-log-doesnt-run-microtasks.js
+++ b/test/inspector/runtime/console-log-doesnt-run-microtasks.js
@@ -4,7 +4,7 @@
print("Check that console.log doesn't run microtasks.");
-InspectorTest.evaluateInPage(
+InspectorTest.addScript(
`
function testFunction()
{
@@ -13,10 +13,10 @@ function testFunction()
console.log(43);
}`);
-InspectorTest.sendCommandOrDie("Runtime.enable", {});
-InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded;
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "testFunction()" });
-InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "setTimeout(() => console.log(\"finished\"), 0)" });
+Protocol.Runtime.enable();
+Protocol.Runtime.onConsoleAPICalled(messageAdded);
+Protocol.Runtime.evaluate({ "expression": "testFunction()" });
+Protocol.Runtime.evaluate({ "expression": "setTimeout(() => console.log(\"finished\"), 0)" });
function messageAdded(result)
{
« no previous file with comments | « test/inspector/runtime/console-line-and-column-expected.txt ('k') | test/inspector/runtime/console-timestamp.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698