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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/click-gutter-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 <script src="../debugger/resources/click-breakpoints.js"></script> 5 <script src="../debugger/resources/click-breakpoints.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 function clickCodeMirrorLineNumber(lineNumber, isRemove, sourceFrame) 9 function clickCodeMirrorLineNumber(lineNumber, isRemove, sourceFrame)
10 { 10 {
(...skipping 23 matching lines...) Expand all
34 function didShowScriptSource(sourceFrame) 34 function didShowScriptSource(sourceFrame)
35 { 35 {
36 clickCodeMirrorLineNumber(2, false, sourceFrame) 36 clickCodeMirrorLineNumber(2, false, sourceFrame)
37 .then(() => clickCodeMirrorLineNumber(2, true, sourceFrame)) 37 .then(() => clickCodeMirrorLineNumber(2, true, sourceFrame))
38 .then(() => clickCodeMirrorLineNumber(3, false, sourceFrame)) 38 .then(() => clickCodeMirrorLineNumber(3, false, sourceFrame))
39 .then(runScript); 39 .then(runScript);
40 } 40 }
41 41
42 function runScript() 42 function runScript()
43 { 43 {
44 InspectorTest.waitUntilPaused(pausedInF2); 44 Promise.all([InspectorTest.waitBreakpointSidebarPane(), new Promise(reso lve => InspectorTest.waitUntilPaused(resolve))])
45 .then(() => InspectorTest.dumpBreakpointSidebarPane("while paused"))
46 .then(() => InspectorTest.completeDebuggerTest());
45 InspectorTest.evaluateInPageWithTimeout("f2()"); 47 InspectorTest.evaluateInPageWithTimeout("f2()");
46 } 48 }
47
48 function pausedInF2(callFrames)
49 {
50 InspectorTest.dumpBreakpointSidebarPane("while paused");
51 InspectorTest.completeDebuggerTest();
52 }
53
54 } 49 }
55 </script> 50 </script>
56 </head> 51 </head>
57 <body onload="runTest()"> 52 <body onload="runTest()">
58 <p>Tests that breakpoints can be added and removed by clicking the gutter. 53 <p>Tests that breakpoints can be added and removed by clicking the gutter.
59 </p> 54 </p>
60 </body> 55 </body>
61 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698