3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
9 setTimeout(callback1
, 0);
14 setTimeout(callback2
, 0);
20 var dummy
= 42; // Should pause here.
21 (function FAIL_Should_Not_Pause_Here() { debugger; })();
23 if (window
.testRunner
)
24 testRunner
.evaluateInWebInspector(0, "(InspectorTest.completeDebuggerTest())")
29 InspectorTest
.startDebuggerTest(step1
, true);
33 InspectorTest
.runTestFunctionAndWaitUntilPaused(step2
);
39 "Print", // "debugger" in callback1
44 InspectorTest
.waitUntilPausedAndPerformSteppingActions(actions
, resume
);
49 InspectorTest
.resumeExecution(InspectorTest
.waitUntilPaused
.bind(InspectorTest
, resume
));
56 <body onload=
"runTest()">
58 Tests that debugger StepOver will stop inside next timeout handler.