| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 | |
| 8 var test = function() | |
| 9 { | |
| 10 var scriptToEvaluate = "function testFunction() {\n" + | |
| 11 " debugger;\n" + | |
| 12 "}\n" + | |
| 13 "setTimeout(testFunction, 0);\n"; | |
| 14 | |
| 15 InspectorTest.startDebuggerTest(step1); | |
| 16 | |
| 17 function step1() | |
| 18 { | |
| 19 InspectorTest.evaluateInPage(scriptToEvaluate, InspectorTest.addResult.b
ind(InspectorTest, "Evaluated script in console.")); | |
| 20 InspectorTest.waitUntilPaused(step2); | |
| 21 } | |
| 22 | |
| 23 function step2(callFrames) | |
| 24 { | |
| 25 InspectorTest.captureStackTrace(callFrames); | |
| 26 InspectorTest.completeDebuggerTest(); | |
| 27 } | |
| 28 } | |
| 29 | |
| 30 </script> | |
| 31 </head> | |
| 32 | |
| 33 <body onload="runTest()"> | |
| 34 <p> | |
| 35 Tests that debugger will stop on "debugger" statement in a function that was add
ed | |
| 36 to the inspected page via evaluation in Web Inspector console.<a href="https://b
ugs.webkit.org/show_bug.cgi?id=41058">Bug 41058</a> | |
| 37 </p> | |
| 38 | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |