3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
7 function testFunction()
9 Promise
.resolve(42).then(
17 var dummy
= window
.foo
|| 1;
23 var dummy
= window
.foo
|| 2;
27 console
.error("FAIL: Unexpected exception: " + e
);
33 InspectorTest
.startDebuggerTest(step1
, true);
37 InspectorTest
.runTestFunctionAndWaitUntilPaused(step2
);
43 "Print", // debugger; at p1
45 "StepInto", "Print", // entered p2
48 "StepOver", "Print", // entered p3
51 InspectorTest
.waitUntilPausedAndPerformSteppingActions(actions
, step3
);
56 InspectorTest
.completeDebuggerTest();
63 <body onload=
"runTest()">
64 <input type='button' onclick='testFunction()' value='Test'
/>
66 Tests that debugger will step through Promise handlers while not stepping into V8 internal scripts.