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

Unified Diff: test/inspector/debugger/framework-nested-scheduled-break.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed 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/framework-break.js ('k') | test/inspector/debugger/framework-precise-ranges.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/inspector/debugger/framework-nested-scheduled-break.js
diff --git a/test/inspector/debugger/framework-nested-scheduled-break.js b/test/inspector/debugger/framework-nested-scheduled-break.js
index 4c28300a7372f2ddf5b7415a800f8aa57bc2e411..3e6299154daa0a1af4f8fdf3c9d83d3014e16898 100644
--- a/test/inspector/debugger/framework-nested-scheduled-break.js
+++ b/test/inspector/debugger/framework-nested-scheduled-break.js
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log('Checks nested scheduled break in framework code.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Checks nested scheduled break in framework code.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function frameworkCall(callback) {
inspector.callWithScheduledBreak(doFrameworkWork.bind(null, callback),
'top-framework-scheduled-break',
@@ -22,7 +22,7 @@ function doFrameworkBreak() {
//# sourceURL=framework.js`, 7, 26);
-InspectorTest.addScript(`
+contextGroup.addScript(`
function testFunction() {
inspector.callWithScheduledBreak(frameworkCall.bind(null, callback),
'top-scheduled-break', '');
@@ -35,11 +35,11 @@ function callback() {
//# sourceURL=user.js`, 25, 26);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
Protocol.Debugger.onPaused(message => {
InspectorTest.log('break reason: ' + message.params.reason);
InspectorTest.log('break aux data: ' + JSON.stringify(message.params.data || {}, null, ' '));
- InspectorTest.logCallFrames(message.params.callFrames);
+ session.logCallFrames(message.params.callFrames);
InspectorTest.log('');
Protocol.Debugger.resume();
});
« no previous file with comments | « test/inspector/debugger/framework-break.js ('k') | test/inspector/debugger/framework-precise-ranges.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698