Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-no-nested-pause.html
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>
7
8 function testFunction()
9 {
10     testFunction.invocationCount++;
11     debugger;
12 }
13
14 testFunction.invocationCount = 0;
15
16 var test = function()
17 {
18     InspectorTest.startDebuggerTest(step1);
19
20     function step1()
21     {
22         InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
23     }
24
25     function step2()
26     {
27         InspectorTest.evaluateInConsole("testFunction(); testFunction.invocationCount", step3);
28         InspectorTest.addResult("Set timer for test function.");
29     }
30
31     function step3(result)
32     {
33         InspectorTest.addResult("testFunction.invocationCount = " + result);
34         InspectorTest.completeDebuggerTest();
35     }
36 }
37
38 </script>
39 </head>
40
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>
45
46 </body>
47 </html>