Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / debugger / debugger-autocontinue-on-syntax-error.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 loadIframe()
8 {
9     var iframe = document.createElement("iframe");
10     iframe.src = "resources/syntax-error.html";
11     document.body.appendChild(iframe);
12 }
13
14 function test()
15 {
16     WebInspector.showPanel("sources");
17     InspectorTest.startDebuggerTest(step1);
18
19     function step1()
20     {
21         DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
22         InspectorTest.addConsoleSniffer(step2);
23         InspectorTest.evaluateInPage("loadIframe()");
24     }
25
26     function step2()
27     {
28         InspectorTest.completeDebuggerTest();
29     }
30 }
31
32 </script>
33 </head>
34
35 <body onload="runTest()">
36 <p>
37 Tests that debugger won't stop on syntax errors even if "pause on uncaught exceptions" is on.
38 </p>
39
40 </body>
41 </html>