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 function testFunction() |
| 8 { |
| 9 Promise.resolve(42).then(function() { |
| 10 debugger; |
| 11 }).then(function() { |
| 12 var dummy1 = 1; |
| 13 var dummy2 = 2; |
| 14 debugger; |
| 15 }); |
| 16 } |
| 17 |
| 18 function test() |
| 19 { |
| 20 InspectorTest.setQuiet(true); |
| 21 InspectorTest.startDebuggerTest(step1); |
| 22 |
| 23 function step1() |
| 24 { |
| 25 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
| 26 } |
| 27 |
| 28 function step2() |
| 29 { |
| 30 var actions = [ |
| 31 "Print", // debugger; |
| 32 "StepInto", "Print", |
| 33 "StepInto", "Print", |
| 34 "StepInto", "Print", |
| 35 ]; |
| 36 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); |
| 37 } |
| 38 |
| 39 function step3() |
| 40 { |
| 41 InspectorTest.completeDebuggerTest(); |
| 42 } |
| 43 } |
| 44 |
| 45 </script> |
| 46 </head> |
| 47 |
| 48 <body onload="runTest()"> |
| 49 <input type='button' onclick='testFunction()' value='Test'/> |
| 50 <p> |
| 51 Tests that debugger will not step into V8 internal scripts. |
| 52 </p> |
| 53 </body> |
| 54 </html> |
OLD | NEW |