Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-frameworks / frameworks-step-into-skips-setTimeout.html
blobde0edb7e1449ce1b5a85f7573bf582555b4475ac
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="../debugger/resources/framework.js"></script>
6 <script>
8 var counter = 0;
10 function testFunction()
12 Framework.scheduleUntilDone(callback, 0);
15 function callback()
17 ++counter;
18 if (counter === 1)
19 stop();
20 return counter === 2;
23 function stop()
25 debugger;
28 function test()
30 var frameworkRegexString = "/framework\\.js$";
31 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
33 InspectorTest.startDebuggerTest(step1, true);
35 function step1()
37 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
40 function step2()
42 var actions = [
43 "Print", // debugger;
44 "StepOut", "Print",
45 "StepInto", "Print",
46 "StepInto", "Print", // Should NOT stop on setTimeout() inside framework
48 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
51 function step3()
53 InspectorTest.completeDebuggerTest();
57 </script>
58 </head>
60 <body onload="runTest()">
61 <input type='button' onclick='testFunction()' value='Test'/>
62 <p>
63 Tests that stepping into blackboxed framework will not pause on setTimeout() inside the framework.
64 </p>
65 </body>
66 </html>