This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DevTools] Blackbox sources with inline source maps
BUG=341082 [email protected],[email protected], oilpan-reviews Review URL: https://codereview.chromium.org/1579283002 Cr-Commit-Position: refs/heads/master@{#370182}
- Loading branch information
Showing
5 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...bKit/LayoutTests/inspector-protocol/debugger/resources/framework-with-inline-sourcemap.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
.../inspector-protocol/debugger/stepping-with-inline-source-map-and-blackboxing-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Stack trace: | ||
testFunction:10:21 | ||
Stack trace: | ||
testFunction:10:21 | ||
Stack trace: | ||
boo:5:12 | ||
foo:2:12 | ||
testFunction:10:21 | ||
Stack trace: | ||
testFunction:10:21 | ||
|
65 changes: 65 additions & 0 deletions
65
...outTests/inspector-protocol/debugger/stepping-with-inline-source-map-and-blackboxing.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<html> | ||
<head> | ||
<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> | ||
<script type="text/javascript" src="resources/framework-with-inline-sourcemap.js"></script> | ||
<script> | ||
function boo() | ||
{ | ||
return 239; | ||
} | ||
|
||
function testFunction() | ||
{ | ||
debugger; | ||
foo(boo); | ||
} | ||
|
||
function test() | ||
{ | ||
var actions = [ "stepInto", "stepInto", "stepOut" ]; | ||
|
||
InspectorTest.eventHandler["Debugger.paused"] = printStackTraceAndMakeNextStep; | ||
InspectorTest.sendCommand("Debugger.enable", {}, setSkipStackFrames); | ||
|
||
function setSkipStackFrames(response) | ||
{ | ||
failIfError(response); | ||
InspectorTest.sendCommand("Debugger.skipStackFrames", { script: "foo\\.js$"}, callTestFunction); | ||
} | ||
|
||
function callTestFunction(response) | ||
{ | ||
failIfError(response); | ||
InspectorTest.sendCommand("Runtime.evaluate", { "expression": "setTimeout(testFunction, 0)"}); | ||
} | ||
|
||
function printStackTraceAndMakeNextStep(response) | ||
{ | ||
failIfError(response); | ||
var callFrames = response.params.callFrames; | ||
InspectorTest.log("Stack trace:") | ||
for (var callFrame of callFrames) { | ||
var location = callFrame.functionLocation.lineNumber + ":" + callFrame.functionLocation.columnNumber; | ||
InspectorTest.log(callFrame.functionName + ":" + location); | ||
} | ||
|
||
var action = actions.shift(); | ||
if (!action) | ||
InspectorTest.completeTest(); | ||
else | ||
InspectorTest.sendCommand("Debugger." + action); | ||
} | ||
|
||
function failIfError(response) | ||
{ | ||
if (response.error) { | ||
InspectorTest.log(JSON.stringify(response)); | ||
InspectorTest.completeTest(); | ||
} | ||
} | ||
} | ||
</script> | ||
</head> | ||
<body onload="runTest()"> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters