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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/set-breakpoint.html

Issue 2491983002: [DevTools] reworked JavaScriptBreakpointsSidebarPane.js (Closed)
Patch Set: labal :( 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 5
6 <script> 6 <script>
7 function oneLineTestFunction() { return 0; } 7 function oneLineTestFunction() { return 0; }
8 </script> 8 </script>
9 9
10 <script> 10 <script>
(...skipping 22 matching lines...) Expand all
33 InspectorTest.addResult("Script source was shown."); 33 InspectorTest.addResult("Script source was shown.");
34 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, didPause ); 34 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, didPause );
35 InspectorTest.runTestFunction(); 35 InspectorTest.runTestFunction();
36 } 36 }
37 37
38 function didPause(callFrames) 38 function didPause(callFrames)
39 { 39 {
40 InspectorTest.addResult("Script execution paused."); 40 InspectorTest.addResult("Script execution paused.");
41 InspectorTest.captureStackTrace(callFrames); 41 InspectorTest.captureStackTrace(callFrames);
42 InspectorTest.dumpBreakpointSidebarPane(); 42 InspectorTest.dumpBreakpointSidebarPane();
43 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD ecoration", breakpointRemoved); 43 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved );
44 InspectorTest.removeBreakpoint(currentSourceFrame, 16); 44 InspectorTest.removeBreakpoint(currentSourceFrame, 16);
45 } 45 }
46 46
47 function breakpointRemoved() 47 function breakpointRemoved()
48 { 48 {
49 InspectorTest.resumeExecution(didResume); 49 InspectorTest.resumeExecution(didResume);
50 } 50 }
51 51
52 function didResume() 52 function didResume()
53 { 53 {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 </script> 142 </script>
143 </head> 143 </head>
144 144
145 <body onload="runTest()"> 145 <body onload="runTest()">
146 <p> 146 <p>
147 Tests setting breakpoints. 147 Tests setting breakpoints.
148 </p> 148 </p>
149 149
150 </body> 150 </body>
151 </html> 151 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698