| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> |
| 5 |
| 6 function testFunction() |
| 7 { |
| 8 var e = document.getElementById("div"); |
| 9 debugger; |
| 10 e.click(); |
| 11 } |
| 12 |
| 13 function shouldNotBeThisFunction() |
| 14 { |
| 15 return 239; |
| 16 } |
| 17 |
| 18 function test() |
| 19 { |
| 20 InspectorTest.waitForEventPromise("Debugger.paused") |
| 21 .then(() => sendCommandAndWaitForPause("Debugger.stepInto")) |
| 22 .then(() => sendCommandAndWaitForPause("Debugger.stepInto")) |
| 23 .then((result) => dumpTopCallFrame(result)) |
| 24 .then(() => InspectorTest.sendCommandPromise("Debugger.resume")); |
| 25 |
| 26 InspectorTest.sendCommandPromise("Debugger.enable", {}) |
| 27 .then((result) => InspectorTest.sendCommandPromise("Runtime.evaluate", {
expression: "testFunction()" })) |
| 28 .then(() => InspectorTest.completeTest()); |
| 29 |
| 30 function sendCommandAndWaitForPause(command) |
| 31 { |
| 32 InspectorTest.sendCommand(command, {}); |
| 33 return InspectorTest.waitForEventPromise("Debugger.paused"); |
| 34 } |
| 35 |
| 36 function dumpTopCallFrame(result) |
| 37 { |
| 38 var frame = result.params.callFrames[0]; |
| 39 InspectorTest.log("functionName (should be empty): " + (frame.functionNa
me.length ? frame.functionName : "empty")); |
| 40 } |
| 41 } |
| 42 </script> |
| 43 </head> |
| 44 <div id="div" onclick="shouldNotBeThisFunction()"> |
| 45 </div> |
| 46 <body onLoad="runTest();"> |
| 47 Tests that Debugger.stepInto doesn't ignore inline event listeners. |
| 48 </body> |
| 49 </html> |
| 50 |
| OLD | NEW |