[chromium] Unreviewed. Rebaseline layout tests.
[WebKit-https.git] / LayoutTests / inspector / debugger-autocontinue-on-syntax-error.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test2.js"></script>
4 <script src="../http/tests/inspector/debugger-test2.js"></script>
5 <script src="resources/syntax-error.js"></script>
6 <script>
7
8 function test()
9 {
10     WebInspector.showPanel("scripts");
11     InspectorTest.startDebuggerTest(startDebuggerTestCallback);
12
13     function startDebuggerTestCallback()
14     {
15         InspectorBackend.setPauseOnExceptionsState(WebInspector.ScriptsPanel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
16         InspectorTest.showScriptSource("debugger-autocontinue-on-syntax-error.html", reloadInspectedPage);
17     }
18
19     function reloadInspectedPage()
20     {
21         InspectorTest.reloadPage(function() {
22             InspectorTest.addResult("DONE.");
23             InspectorTest.completeTest();
24         });
25     }
26
27 }
28
29 </script>
30 </head>
31
32 <body onload="runTest()">
33 <p>
34 Tests that debugger won't stop on syntax errors even if "pause on uncaught exceptions" is on.
35 </p>
36
37 </body>
38 </html>