| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges.html
|
| deleted file mode 100644
|
| index e31f5967256066e6ecd2de62c035983efa50f194..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/stepping-with-blackboxed-ranges.html
|
| +++ /dev/null
|
| @@ -1,104 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
|
| -<script type="text/javascript" src="resources/blackboxed.js"></script>
|
| -<script type="text/javascript" src="resources/mixed.js"></script>
|
| -<script>
|
| -function testFunction()
|
| -{
|
| - notBlackboxedBoo(); // for setup ranges and stepOut
|
| - notBlackboxedBoo(); // for stepIn
|
| -}
|
| -
|
| -function foo()
|
| -{
|
| - debugger;
|
| - return 239;
|
| -}
|
| -</script>
|
| -<script>
|
| -function test()
|
| -{
|
| - InspectorTest.eventHandler["Debugger.paused"] = setBlackboxedScriptRanges;
|
| - InspectorTest.sendCommandOrDie("Debugger.enable", {}, callTestFunction);
|
| -
|
| - function callTestFunction(response)
|
| - {
|
| - InspectorTest.evaluateInInspectedPage("setTimeout(testFunction, 0);");
|
| - }
|
| -
|
| - function setBlackboxedScriptRanges(response)
|
| - {
|
| - var callFrames = response.params.callFrames;
|
| - printCallFrames(callFrames);
|
| - InspectorTest.sendCommand("Debugger.setBlackboxedRanges", {
|
| - scriptId: callFrames[1].location.scriptId,
|
| - positions: [ { line: 0, column: 0 } ] // blackbox ranges for blackboxed.js
|
| - }, setIncorrectRanges.bind(null, callFrames[2].location.scriptId));
|
| - }
|
| -
|
| - var incorrectPositions = [
|
| - [ { line: 0, column: 0 }, { line: 0, column: 0 } ],
|
| - [ { line: 0, column: 1 }, { line: 0, column: 0 } ],
|
| - [ { line: 0, column: -1 } ],
|
| - ];
|
| -
|
| - function setIncorrectRanges(scriptId, response)
|
| - {
|
| - if (response.error)
|
| - InspectorTest.log(response.error.message);
|
| - var positions = incorrectPositions.shift();
|
| - if (!positions) {
|
| - setMixedSourceRanges(scriptId);
|
| - return;
|
| - }
|
| - InspectorTest.log("Try to set positions: " + JSON.stringify(positions));
|
| - InspectorTest.sendCommand("Debugger.setBlackboxedRanges", {
|
| - scriptId: scriptId,
|
| - positions: positions
|
| - }, setIncorrectRanges.bind(null, scriptId));
|
| - }
|
| -
|
| - function setMixedSourceRanges(scriptId)
|
| - {
|
| - InspectorTest.eventHandler["Debugger.paused"] = runAction;
|
| - InspectorTest.sendCommandOrDie("Debugger.setBlackboxedRanges", {
|
| - scriptId: scriptId,
|
| - positions: [ { line: 8, column: 0 }, { line: 15, column: 0 } ] // blackbox ranges for mixed.js
|
| - }, runAction);
|
| - }
|
| -
|
| - var actions = [ "stepOut", "print", "stepOut", "print", "stepOut", "print",
|
| - "stepInto", "print", "stepOver", "stepInto", "print", "stepOver", "stepInto", "print",
|
| - "stepOver", "stepInto", "print" ];
|
| -
|
| - function runAction(response)
|
| - {
|
| - var action = actions.shift();
|
| - if (!action)
|
| - InspectorTest.completeTest();
|
| -
|
| - if (action === "print") {
|
| - printCallFrames(response.params.callFrames);
|
| - runAction({});
|
| - } else {
|
| - InspectorTest.log("action: " + action);
|
| - InspectorTest.sendCommandOrDie("Debugger." + action, {});
|
| - }
|
| - }
|
| -
|
| - function printCallFrames(callFrames)
|
| - {
|
| - var topCallFrame = callFrames[0];
|
| - if (topCallFrame.functionName.startsWith("blackboxed"))
|
| - InspectorTest.log("FAIL: blackboxed function in top call frame");
|
| - for (var callFrame of callFrames)
|
| - InspectorTest.log(callFrame.functionName + ': ' + callFrame.location.lineNumber + ":" + callFrame.location.columnNumber);
|
| - InspectorTest.log("");
|
| - }
|
| -}
|
| -</script>
|
| -</head>
|
| -<body onload="runTest()">
|
| -</body>
|
| -</html>
|
|
|