Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-no-nested-pause.html
blob9aa5a7d92af324cbc7e15fdffd1f89e0777378b5
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script>
8 function testFunction()
10 testFunction.invocationCount++;
11 debugger;
14 testFunction.invocationCount = 0;
16 var test = function()
18 InspectorTest.startDebuggerTest(step1);
20 function step1()
22 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
25 function step2()
27 InspectorTest.evaluateInConsole("testFunction(); testFunction.invocationCount", step3);
28 InspectorTest.addResult("Set timer for test function.");
31 function step3(result)
33 InspectorTest.addResult("testFunction.invocationCount = " + result);
34 InspectorTest.completeDebuggerTest();
38 </script>
39 </head>
41 <body onload="runTest()">
42 <p>
43 Tests that debugger will skip breakpoint hit when script execution is already paused. <a href="https://bugs.webkit.org/show_bug.cgi?id=41768">See bug</a>
44 </p>
46 </body>
47 </html>