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

Side by Side Diff: LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html

Issue 310463003: DevTools: introduce TargetBreakpoints as a presentation of breakpoint and its state within target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comments Created 6 years, 6 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 | Annotate | Revision Log
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="resources/unformatted4.js"></script> 5 <script src="resources/unformatted4.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function f1() 9 function f1()
10 { 10 {
11 var a=0;var b=1;var c=3;var d=4;var e=5; 11 var a=0;var b=1;var c=3;var d=4;var e=5;
12 var f=0; 12 var f=0;
13 return 0; 13 return 0;
14 } 14 }
15 15
16 var test = function() 16 var test = function()
17 { 17 {
18 WebInspector.breakpointManager._storage._breakpoints = {}; 18 WebInspector.breakpointManager._storage._breakpoints = {};
19 var panel = WebInspector.inspectorView.showPanel("sources"); 19 var panel = WebInspector.inspectorView.showPanel("sources");
20 var scriptFormatter = InspectorTest.scriptFormatter(); 20 var scriptFormatter = InspectorTest.scriptFormatter();
21 21
22 InspectorTest.runDebuggerTestSuite([ 22 InspectorTest.runDebuggerTestSuite([
23 function testBreakpointSetInOriginalAndRemovedInFormatted(next) 23 function testBreakpointSetInOriginalAndRemovedInFormatted(next)
24 { 24 {
25 InspectorTest.showScriptSource("script-formatter-breakpoints-4.html" , didShowScriptSource); 25 InspectorTest.showScriptSource("script-formatter-breakpoints-4.html" , didShowScriptSource);
26 26
27 function didShowScriptSource(sourceFrame) 27 function didShowScriptSource(sourceFrame)
28 { 28 {
29 InspectorTest.addResult("Adding breakpoint."); 29 InspectorTest.addResult("Adding breakpoint.");
30 InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoi nt.prototype, "_addResolvedLocation", breakpointResolved); 30 InspectorTest.addSniffer(WebInspector.BreakpointManager.TargetBr eakpoint.prototype, "_addResolvedLocation", breakpointResolved);
31 InspectorTest.setBreakpoint(sourceFrame, 11, "", true); 31 InspectorTest.setBreakpoint(sourceFrame, 11, "", true);
32 } 32 }
33 33
34 function breakpointResolved() 34 function breakpointResolved()
35 { 35 {
36 InspectorTest.addResult("Formatting."); 36 InspectorTest.addResult("Formatting.");
37 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted); 37 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
38 scriptFormatter._toggleFormatScriptSource(); 38 scriptFormatter._toggleFormatScriptSource();
39 } 39 }
40 40
(...skipping 12 matching lines...) Expand all
53 ]); 53 ]);
54 54
55 } 55 }
56 </script> 56 </script>
57 </head> 57 </head>
58 <body onload="runTest()"> 58 <body onload="runTest()">
59 <p>Tests the script formatting is working fine with breakpoints. 59 <p>Tests the script formatting is working fine with breakpoints.
60 </p> 60 </p>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698