3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
10 var scriptToEvaluate = "function testFunction() {\n" +
13 "setTimeout(testFunction, 0);\n";
15 InspectorTest.startDebuggerTest(step1);
19 InspectorTest.evaluateInPage(scriptToEvaluate, InspectorTest.addResult.bind(InspectorTest, "Evaluated script in console."));
20 InspectorTest.waitUntilPaused(step2);
23 function step2(callFrames)
25 InspectorTest.captureStackTrace(callFrames);
26 InspectorTest.completeDebuggerTest();
33 <body onload="runTest()">
35 Tests that debugger will stop on "debugger" statement in a function that was added
36 to the inspected page via evaluation in Web Inspector console.<a href="https://bugs.webkit.org/show_bug.cgi?id=41058">Bug 41058</a>