Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-pause-on-exception.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 throwAnException()
8 {
9 return unknown_var;
10 }
11
12 function handleClick()
13 {
14 throwAnException();
15 }
16
17 var test = function()
18 {
19 InspectorTest.startDebuggerTest(step1);
20
21 function step1()
22 {
23 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.PauseOnUncaughtExceptions);
24 InspectorTest.showScriptSource("debugger-pause-on-exception.html", step2 );
25 }
26
27 function step2()
28 {
29 InspectorTest.addResult("Script source was shown.");
30 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)");
31 InspectorTest.waitUntilPausedAndDumpStackAndResume(step3);
32 }
33
34 function step3()
35 {
36 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.DontPauseOnExceptions);
37 InspectorTest.completeDebuggerTest();
38 }
39 }
40
41 </script>
42 </head>
43
44 <body onload="runTest()">
45 <p>
46 Tests that pause on exception works.
47 </p>
48
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698