2011-01-26 Martin Robinson <mrobinson@igalia.com>
[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.completeDebuggerTest();
23         });
24     }
25
26 }
27
28 </script>
29 </head>
30
31 <body onload="runTest()">
32 <p>
33 Tests that debugger won't stop on syntax errors even if "pause on uncaught exceptions" is on.
34 </p>
35
36 </body>
37 </html>