| 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 src="../../../http/tests/inspector/console-test.js"></script> |
| 6 <script> |
| 7 |
| 8 function runSetTimeoutWithSyntaxError() |
| 9 { |
| 10 setTimeout({}, 0); |
| 11 } |
| 12 |
| 13 function executeSomeCode() |
| 14 { |
| 15 debugger; // should stop here not earlier |
| 16 } |
| 17 |
| 18 var test = function() |
| 19 { |
| 20 InspectorTest.startDebuggerTest(step1, true); |
| 21 |
| 22 function step1() |
| 23 { |
| 24 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._setBr
eakpoint("instrumentation:timerFired"); |
| 25 InspectorTest.evaluateInPage("runSetTimeoutWithSyntaxError()", Inspector
Test.waitUntilMessageReceived.bind(this, step2)); |
| 26 } |
| 27 |
| 28 function step2() |
| 29 { |
| 30 var actions = [ "Print" ]; |
| 31 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); |
| 32 InspectorTest.evaluateInPage("executeSomeCode()"); |
| 33 } |
| 34 |
| 35 function step3() |
| 36 { |
| 37 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._remov
eBreakpoint("instrumentation:timerFired"); |
| 38 InspectorTest.completeDebuggerTest(); |
| 39 } |
| 40 } |
| 41 |
| 42 </script> |
| 43 </head> |
| 44 |
| 45 <body onload="runTest()"> |
| 46 <p> |
| 47 Tests that scheduled pause is cleared after processing event with empty handler. |
| 48 </p> |
| 49 <div id="myDiv"></div> |
| 50 </body> |
| 51 </html> |
| OLD | NEW |