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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/break-on-set-timeout-with-syntax-error.html

Issue 2238003002: DevTools: migrate sources panel sidebar to views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: followed up on the watch test. Created 4 years, 4 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
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 src="../../../http/tests/inspector/console-test.js"></script> 5 <script src="../../../http/tests/inspector/console-test.js"></script>
6 <script> 6 <script>
7 7
8 function runSetTimeoutWithSyntaxError() 8 function runSetTimeoutWithSyntaxError()
9 { 9 {
10 setTimeout({}, 0); 10 setTimeout({}, 0);
11 } 11 }
12 12
13 function executeSomeCode() 13 function executeSomeCode()
14 { 14 {
15 debugger; // should stop here not earlier 15 debugger; // should stop here not earlier
16 } 16 }
17 17
18 var test = function() 18 var test = function()
19 { 19 {
20 InspectorTest.startDebuggerTest(step1, true); 20 InspectorTest.startDebuggerTest(step1, true);
21 21
22 function step1() 22 function step1()
23 { 23 {
24 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._setBr eakpoint("instrumentation:timerFired"); 24 self.runtime.sharedInstance(WebInspector.EventListenerBreakpointsSidebar Pane)._setBreakpoint("instrumentation:timerFired");
25 InspectorTest.evaluateInPage("runSetTimeoutWithSyntaxError()", Inspector Test.waitUntilMessageReceived.bind(this, step2)); 25 InspectorTest.evaluateInPage("runSetTimeoutWithSyntaxError()", Inspector Test.waitUntilMessageReceived.bind(this, step2));
26 } 26 }
27 27
28 function step2() 28 function step2()
29 { 29 {
30 var actions = [ "Print" ]; 30 var actions = [ "Print" ];
31 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); 31 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
32 InspectorTest.evaluateInPage("executeSomeCode()"); 32 InspectorTest.evaluateInPage("executeSomeCode()");
33 } 33 }
34 34
35 function step3() 35 function step3()
36 { 36 {
37 WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints._remov eBreakpoint("instrumentation:timerFired"); 37 self.runtime.sharedInstance(WebInspector.EventListenerBreakpointsSidebar Pane)._removeBreakpoint("instrumentation:timerFired");
38 InspectorTest.completeDebuggerTest(); 38 InspectorTest.completeDebuggerTest();
39 } 39 }
40 } 40 }
41 41
42 </script> 42 </script>
43 </head> 43 </head>
44 44
45 <body onload="runTest()"> 45 <body onload="runTest()">
46 <p> 46 <p>
47 Tests that scheduled pause is cleared after processing event with empty handler. 47 Tests that scheduled pause is cleared after processing event with empty handler.
48 </p> 48 </p>
49 <div id="myDiv"></div> 49 <div id="myDiv"></div>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698