| 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 function testFunction() |
| 7 { |
| 8 debugger; |
| 9 console.log(123); |
| 10 return 239; // stack result should point here |
| 11 } |
| 12 </script> |
| 13 <script> |
| 14 |
| 15 function test() |
| 16 { |
| 17 InspectorTest.startDebuggerTestPromise(/* quiet */ true) |
| 18 .then(() => InspectorTest.runTestFunctionAndWaitUntilPausedPromise()) |
| 19 .then(() => stepIntoPromise()) |
| 20 .then(() => stepIntoPromise()) |
| 21 .then((callFrames) => InspectorTest.captureStackTrace(callFrames)) |
| 22 .then(() => InspectorTest.completeDebuggerTest()); |
| 23 |
| 24 function stepIntoPromise() |
| 25 { |
| 26 var cb; |
| 27 var p = new Promise(fullfill => cb = fullfill); |
| 28 InspectorTest.stepInto(); |
| 29 InspectorTest.waitUntilResumed(() => InspectorTest.waitUntilPaused(cb)); |
| 30 return p; |
| 31 } |
| 32 } |
| 33 </script> |
| 34 </head> |
| 35 <body onload="runTest()"> |
| 36 <p>Tests that stepInto doesn't pause in InjectedScriptSource.</p> |
| 37 </body> |
| 38 </html> |
| OLD | NEW |