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

Unified Diff: test/inspector/debugger/set-script-source.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/debugger/set-script-source.js
diff --git a/test/inspector/debugger/set-script-source.js b/test/inspector/debugger/set-script-source.js
index 8e58503357e78373c5d661fbac09d411d1a0c154..36944cca6c18dd18afd514b20eeb569b982746fb 100644
--- a/test/inspector/debugger/set-script-source.js
+++ b/test/inspector/debugger/set-script-source.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.evaluateInPage(
+InspectorTest.addScript(
`function TestExpression(a, b) {
return a + b;
}`);
@@ -62,7 +62,8 @@ function runRequestSeries(step) {
}
processStep(next);
}
- InspectorTest.sendCommand(currentStep.command, currentStep.params, innerCallback);
+ var command = currentStep.command.split(".");
+ Protocol[command[0]][command[1]](currentStep.params).then(innerCallback);
}
}
« no previous file with comments | « test/inspector/debugger/set-breakpoint-before-enabling.js ('k') | test/inspector/debugger/step-over-caught-exception.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698