| Index: test/inspector/protocol-test.js
|
| diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js
|
| index dada81cc0da7a820d96e4d7928be8599c65d8b1e..ede491cbe2658212b5e739b4e87dc9569d314707 100644
|
| --- a/test/inspector/protocol-test.js
|
| +++ b/test/inspector/protocol-test.js
|
| @@ -101,6 +101,17 @@ InspectorTest.logObject = function(object, title)
|
| InspectorTest.log(lines.join("\n"));
|
| }
|
|
|
| +InspectorTest.logCallFrames = function(callFrames, urlByScriptId)
|
| +{
|
| + for (var frame of callFrames) {
|
| + var functionName = frame.functionName || '(anonymous)';
|
| + var url = frame.url ? frame.url : urlByScriptId.get(frame.location.scriptId);
|
| + var lineNumber = frame.location ? frame.location.lineNumber : frame.lineNumber;
|
| + var columnNumber = frame.location ? frame.location.columnNumber : frame.columnNumber;
|
| + InspectorTest.log(`${functionName} (${url}:${lineNumber}:${columnNumber})`);
|
| + }
|
| +}
|
| +
|
| InspectorTest.completeTest = function()
|
| {
|
| Protocol.Debugger.disable().then(() => quit());
|
| @@ -113,7 +124,7 @@ InspectorTest.completeTestAfterPendingTimeouts = function()
|
| awaitPromise: true }).then(InspectorTest.completeTest);
|
| }
|
|
|
| -InspectorTest.addScript = (string) => compileAndRunWithOrigin(string, "", 0, 0);
|
| +InspectorTest.addScript = (string, lineOffset, columnOffset) => compileAndRunWithOrigin(string, "", lineOffset, columnOffset);
|
| InspectorTest.addScriptWithUrl = (string, url) => compileAndRunWithOrigin(string, url, 0, 0);
|
|
|
| InspectorTest.startDumpingProtocolMessages = function()
|
|
|