Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / 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     InspectorTest.startDebuggerTest(step1);
17
18     function step1()
19     {
20         DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
21         InspectorTest.addConsoleSniffer(step2);
22         InspectorTest.evaluateInPage("loadIframe()");
23     }
24
25     function step2()
26     {
27         InspectorTest.completeDebuggerTest();
28     }
29 }
30
31 </script>
32 </head>
33
34 <body onload="runTest()">
35 <p>
36 Tests that debugger won't stop on syntax errors even if "pause on uncaught exceptions" is on.
37 </p>
38
39 </body>
40 </html>