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

Unified Diff: test/inspector/debugger/stepping-with-natives-and-frameworks.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
Index: test/inspector/debugger/stepping-with-natives-and-frameworks.js
diff --git a/test/inspector/debugger/stepping-with-natives-and-frameworks.js b/test/inspector/debugger/stepping-with-natives-and-frameworks.js
index 1be1acdd28a343e7189a33dd4c2185d7a7daccef..c6648ec93233a4b0b634aeee267425b629a71b33 100644
--- a/test/inspector/debugger/stepping-with-natives-and-frameworks.js
+++ b/test/inspector/debugger/stepping-with-natives-and-frameworks.js
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-InspectorTest.log('Stepping with natives and frameworks.');
+let {session, contextGroup, Protocol} = InspectorTest.start('Stepping with natives and frameworks.');
-InspectorTest.addScript(`
+contextGroup.addScript(`
function callAll() {
for (var f of arguments)
f();
}
//# sourceURL=framework.js`);
-InspectorTest.setupScriptMap();
+session.setupScriptMap();
InspectorTest.logProtocolCommandCalls('Debugger.pause');
InspectorTest.logProtocolCommandCalls('Debugger.stepInto');
InspectorTest.logProtocolCommandCalls('Debugger.stepOver');
@@ -296,5 +296,5 @@ InspectorTest.runAsyncTestSuite([
]);
function logPauseLocation(message) {
- return InspectorTest.logSourceLocation(message.params.callFrames[0].location);
+ return session.logSourceLocation(message.params.callFrames[0].location);
}

Powered by Google App Engine
This is Rietveld 408576698