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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit-breakpoints.html

Issue 2500493003: [DevTools] make breakpoints better (Closed)
Patch Set: fixed context menu items for gutter 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="../../../http/tests/inspector/live-edit-test.js"></script> 5 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
6 <script src="resources/edit-me-breakpoints.js"></script> 6 <script src="resources/edit-me-breakpoints.js"></script>
7 <script> 7 <script>
8 function loadDynamicAnonymousScript() 8 function loadDynamicAnonymousScript()
9 { 9 {
10 function testFunction() 10 function testFunction()
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS ourceFrame, originalUISourceCode; 76 var javaScriptSourceFrame, uiSourceCode, script, originalJavaScriptS ourceFrame, originalUISourceCode;
77 77
78 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri ptSource); 78 InspectorTest.showScriptSource("edit-me-breakpoints.js", didShowScri ptSource);
79 79
80 function didShowScriptSource(sourceFrame) 80 function didShowScriptSource(sourceFrame)
81 { 81 {
82 javaScriptSourceFrame = sourceFrame; 82 javaScriptSourceFrame = sourceFrame;
83 uiSourceCode = sourceFrame._uiSourceCode; 83 uiSourceCode = sourceFrame._uiSourceCode;
84 javaScriptSourceFrame._textEditor.main = true; 84 javaScriptSourceFrame._textEditor.main = true;
85 85
86 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro to__, "addBreakpoint", addBreakpointSniffer, true); 86 InspectorTest.addSniffer(javaScriptSourceFrame.__proto__, "addBr eakpointForTest", addBreakpointSniffer, true);
87 InspectorTest.addSniffer(javaScriptSourceFrame._textEditor.__pro to__, "removeBreakpoint", removeBreakpointSniffer, true); 87 InspectorTest.addSniffer(javaScriptSourceFrame.__proto__, "remov eBreakpointForTest", removeBreakpointSniffer, true);
88 88
89 InspectorTest.addResult("Setting breakpoint:"); 89 InspectorTest.addResult("Setting breakpoint:");
90 InspectorTest.addSniffer(Bindings.BreakpointManager.TargetBreakp oint.prototype, "_didSetBreakpointInDebugger", breakpointResolved); 90 InspectorTest.addSniffer(Bindings.BreakpointManager.TargetBreakp oint.prototype, "_didSetBreakpointInDebugger", breakpointResolved);
91 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); 91 InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
92 } 92 }
93 93
94 function breakpointResolved(callback, breakpointId, locations) 94 function breakpointResolved(callback, breakpointId, locations)
95 { 95 {
96 var location = locations[0]; 96 var location = locations[0];
97 script = InspectorTest.debuggerModel.scriptForId(location.script Id); 97 script = InspectorTest.debuggerModel.scriptForId(location.script Id);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 ]); 311 ]);
312 }; 312 };
313 313
314 </script> 314 </script>
315 </head> 315 </head>
316 <body onload="runTest()"> 316 <body onload="runTest()">
317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p> 317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p>
318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> 318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a>
319 </body> 319 </body>
320 </html> 320 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698