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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/set-conditional-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 23 matching lines...) Expand all
34 InspectorTest.addResult("Script source was shown."); 34 InspectorTest.addResult("Script source was shown.");
35 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, "true", didPause); 35 setBreakpointAndWaitUntilPaused(currentSourceFrame, 16, "true", didPause);
36 InspectorTest.runTestFunction(); 36 InspectorTest.runTestFunction();
37 } 37 }
38 38
39 function didPause(callFrames) 39 function didPause(callFrames)
40 { 40 {
41 InspectorTest.addResult("Script execution paused."); 41 InspectorTest.addResult("Script execution paused.");
42 InspectorTest.captureStackTrace(callFrames); 42 InspectorTest.captureStackTrace(callFrames);
43 InspectorTest.dumpBreakpointSidebarPane(); 43 InspectorTest.dumpBreakpointSidebarPane();
44 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD ecoration", breakpointRemoved); 44 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved );
45 InspectorTest.removeBreakpoint(currentSourceFrame, 16); 45 InspectorTest.removeBreakpoint(currentSourceFrame, 16);
46 } 46 }
47 47
48 function breakpointRemoved() 48 function breakpointRemoved()
49 { 49 {
50 InspectorTest.resumeExecution(didResume); 50 InspectorTest.resumeExecution(didResume);
51 } 51 }
52 52
53 function didResume() 53 function didResume()
54 { 54 {
55 InspectorTest.dumpBreakpointSidebarPane() 55 InspectorTest.dumpBreakpointSidebarPane()
56 InspectorTest.addResult("Script execution resumed."); 56 InspectorTest.addResult("Script execution resumed.");
57 next(); 57 next();
58 } 58 }
59 }, 59 },
60 60
61 function testSetConditionalBreakpointThatDoesNotBreak(next) 61 function testSetConditionalBreakpointThatDoesNotBreak(next)
62 { 62 {
63 InspectorTest.showScriptSource("set-conditional-breakpoint.html", di dShowScriptSource); 63 InspectorTest.showScriptSource("set-conditional-breakpoint.html", di dShowScriptSource);
64 64
65 function didShowScriptSource(sourceFrame) 65 function didShowScriptSource(sourceFrame)
66 { 66 {
67 currentSourceFrame = sourceFrame; 67 currentSourceFrame = sourceFrame;
68 InspectorTest.addResult("Script source was shown."); 68 InspectorTest.addResult("Script source was shown.");
69 setBreakpoint(currentSourceFrame, 16, "false"); 69 setBreakpoint(currentSourceFrame, 16, "false");
70 InspectorTest.runTestFunction(); 70 InspectorTest.runTestFunction();
71 InspectorTest.addConsoleSniffer(testFunctionFinished); 71 InspectorTest.waitBreakpointSidebarPane().then(testFunctionFinis hed);
72 72
73 } 73 }
74 74
75 function testFunctionFinished(callFrames) 75 function testFunctionFinished(callFrames)
76 { 76 {
77 InspectorTest.addResult("Test function finished."); 77 InspectorTest.addResult("Test function finished.");
78 InspectorTest.dumpBreakpointSidebarPane(); 78 InspectorTest.dumpBreakpointSidebarPane();
79 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD ecoration", breakpointRemoved); 79 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved );
80 InspectorTest.removeBreakpoint(currentSourceFrame, 16); 80 InspectorTest.removeBreakpoint(currentSourceFrame, 16);
81 } 81 }
82 82
83 function breakpointRemoved() 83 function breakpointRemoved()
84 { 84 {
85 InspectorTest.addResult("Breakpoints removed."); 85 InspectorTest.addResult("Breakpoints removed.");
86 InspectorTest.dumpBreakpointSidebarPane(); 86 InspectorTest.dumpBreakpointSidebarPane();
87 next(); 87 next();
88 } 88 }
89 }, 89 },
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 </script> 127 </script>
128 </head> 128 </head>
129 129
130 <body onload="runTest()"> 130 <body onload="runTest()">
131 <p> 131 <p>
132 Tests setting breakpoints. 132 Tests setting breakpoints.
133 </p> 133 </p>
134 134
135 </body> 135 </body>
136 </html> 136 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698