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

Unified Diff: test/inspector/debugger/inspector-break-api.js

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 years, 10 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/inspector-break-api.js
diff --git a/test/inspector/debugger/inspector-break-api.js b/test/inspector/debugger/inspector-break-api.js
index af1f2df9dc70003c5cd6b7d61c198dab6ec17898..009bf717a4ba4499fd3e59df93abd6861e02881d 100644
--- a/test/inspector/debugger/inspector-break-api.js
+++ b/test/inspector/debugger/inspector-break-api.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.
-print("Checks breakProgram,(schedule|cancel)PauseOnNextStatement test API");
+InspectorTest.log("Checks breakProgram,(schedule|cancel)PauseOnNextStatement test API");
InspectorTest.addScript(`
function callBreakProgram() {
@@ -33,17 +33,17 @@ InspectorTest.runTestSuite([
},
function testSchedulePauseOnNextStatement(next) {
- schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
+ utils.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
Protocol.Runtime.evaluate({ expression: 'foo()//# sourceURL=expr1.js'})
.then(() => Protocol.Runtime.evaluate({
expression: 'foo()//# sourceURL=expr2.js'}))
- .then(() => cancelPauseOnNextStatement())
+ .then(() => utils.cancelPauseOnNextStatement())
.then(next);
},
function testCancelPauseOnNextStatement(next) {
- schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
- cancelPauseOnNextStatement();
+ utils.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
+ utils.cancelPauseOnNextStatement();
Protocol.Runtime.evaluate({ expression: 'foo()'})
.then(next);
}

Powered by Google App Engine
This is Rietveld 408576698