Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-pause-on-debugger-statement.html
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
7 function testFunction()
8 {
9     debugger;
10 }
11
12 var test = function()
13 {
14     InspectorTest.startDebuggerTest(step1);
15
16     function step1()
17     {
18         InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
19     }
20
21     function step2()
22     {
23         InspectorTest.completeDebuggerTest();
24     }
25 }
26
27 </script>
28 </head>
29
30 <body onload="runTest()">
31 <p>
32 Tests that debugger will stop on "debugger" statement.
33 </p>
34
35 </body>
36 </html>