Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / debugger-autocontinue-on-syntax-error.html
blobf1ff50ad2249ec4bd70820a0945244433f4159c9
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>
7 function loadIframe()
9 var iframe = document.createElement("iframe");
10 iframe.src = "resources/syntax-error.html";
11 document.body.appendChild(iframe);
14 function test()
16 InspectorTest.startDebuggerTest(step1);
18 function step1()
20 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
21 InspectorTest.addConsoleSniffer(step2);
22 InspectorTest.evaluateInPage("loadIframe()");
25 function step2()
27 InspectorTest.completeDebuggerTest();
31 </script>
32 </head>
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>
39 </body>
40 </html>