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

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

Issue 2890463004: [inspector] Refactor inspector test (Closed)
Patch Set: better crash fix Created 3 years, 7 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
« no previous file with comments | « test/inspector/debugger/get-possible-breakpoints.js ('k') | test/inspector/debugger/pause.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02f68ba40f20a0821c2c2992c8541ff28659d7e9..178da5b0279e9834f319bbd7807adddbe7f23b24 100644
--- a/test/inspector/debugger/inspector-break-api.js
+++ b/test/inspector/debugger/inspector-break-api.js
@@ -33,17 +33,17 @@ InspectorTest.runTestSuite([
},
function testSchedulePauseOnNextStatement(next) {
- utils.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
+ InspectorTest.contextGroup.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
Protocol.Runtime.evaluate({ expression: 'foo()//# sourceURL=expr1.js'})
.then(() => Protocol.Runtime.evaluate({
expression: 'foo()//# sourceURL=expr2.js'}))
- .then(() => utils.cancelPauseOnNextStatement())
+ .then(() => InspectorTest.contextGroup.cancelPauseOnNextStatement())
.then(next);
},
function testCancelPauseOnNextStatement(next) {
- utils.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
- utils.cancelPauseOnNextStatement();
+ InspectorTest.contextGroup.schedulePauseOnNextStatement('reason', JSON.stringify({a: 42}));
+ InspectorTest.contextGroup.cancelPauseOnNextStatement();
Protocol.Runtime.evaluate({ expression: 'foo()'})
.then(next);
}
« no previous file with comments | « test/inspector/debugger/get-possible-breakpoints.js ('k') | test/inspector/debugger/pause.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698