blob: 1e148a3b44aa737db623a00af5cdcff4afb1cf1c [file] [log] [blame]
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/debugger-test.js"></script>
<script>
function f()
{
var i = 10;
}
function d()
{
debugger;
f();
}
function testFunction()
{
d();
}
var test = function()
{
InspectorTest.startDebuggerTest(step1);
function step1()
{
InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
}
var stepCount = 0;
function step2(callFrames)
{
InspectorTest.captureStackTrace(callFrames);
if (stepCount < 2) {
InspectorTest.addResult("Stepping over...");
document.getElementById("scripts-step-over").click();
InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, step2));
} else
InspectorTest.completeDebuggerTest();
stepCount++;
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests "step over" functionality in debugger.
</p>
</body>
</html>