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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-pause-on-failed-assertion.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function failAssertion() 7 function failAssertion()
8 { 8 {
9 console.assert(false); 9 console.assert(false);
10 } 10 }
11 11
12 function handleClick() 12 function handleClick()
13 { 13 {
14 failAssertion(); 14 failAssertion();
15 } 15 }
16 16
17 var test = function() 17 var test = function()
18 { 18 {
19 InspectorTest.startDebuggerTest(step1); 19 InspectorTest.startDebuggerTest(step1);
20 20
21 function step1() 21 function step1()
22 { 22 {
23 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerMo del.PauseOnExceptionsState.PauseOnUncaughtExceptions); 23 InspectorTest.DebuggerAgent.setPauseOnExceptions(SDK.DebuggerModel.Pause OnExceptionsState.PauseOnUncaughtExceptions);
24 InspectorTest.showScriptSource("debugger-pause-on-failed-assertion.html" , step2); 24 InspectorTest.showScriptSource("debugger-pause-on-failed-assertion.html" , step2);
25 } 25 }
26 26
27 function step2() 27 function step2()
28 { 28 {
29 InspectorTest.addResult("Script source was shown."); 29 InspectorTest.addResult("Script source was shown.");
30 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)"); 30 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)");
31 InspectorTest.waitUntilPaused(step3); 31 InspectorTest.waitUntilPaused(step3);
32 } 32 }
33 33
34 function step3(callFrames) 34 function step3(callFrames)
35 { 35 {
36 InspectorTest.captureStackTrace(callFrames); 36 InspectorTest.captureStackTrace(callFrames);
37 InspectorTest.completeDebuggerTest(); 37 InspectorTest.completeDebuggerTest();
38 } 38 }
39 } 39 }
40 40
41 </script> 41 </script>
42 </head> 42 </head>
43 43
44 <body onload="runTest()"> 44 <body onload="runTest()">
45 <p> 45 <p>
46 Tests that debugger breaks on failed assertion when pause on exception mode is e nabled. 46 Tests that debugger breaks on failed assertion when pause on exception mode is e nabled.
47 </p> 47 </p>
48 48
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698