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

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

Issue 1835783002: DevTools: simplify WI.FormattedContentBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline tests Created 4 years, 8 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
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="../../../inspector/sources/debugger/resources/unformatted4.js"></sc ript> 5 <script src="../../../inspector/sources/debugger/resources/unformatted4.js"></sc ript>
6 6
7 <script> 7 <script>
8 8
9 function f1() 9 function f1()
10 { 10 {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 InspectorTest.addResult("Formatting."); 53 InspectorTest.addResult("Formatting.");
54 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted); 54 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
55 scriptFormatter._toggleFormatScriptSource(); 55 scriptFormatter._toggleFormatScriptSource();
56 } 56 }
57 57
58 function uiSourceCodeScriptFormatted() 58 function uiSourceCodeScriptFormatted()
59 { 59 {
60 InspectorTest.addResult("Removing breakpoint."); 60 InspectorTest.addResult("Removing breakpoint.");
61 var formattedSourceFrame = panel.visibleView; 61 var formattedSourceFrame = panel.visibleView;
62 InspectorTest.removeBreakpoint(formattedSourceFrame, 18); 62 InspectorTest.removeBreakpoint(formattedSourceFrame, 16);
63 InspectorTest.addResult("Unformatting."); 63 InspectorTest.addResult("Unformatting.");
64 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode()); 64 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
65 var breakpoints = WebInspector.breakpointManager._storage._setti ng.get(); 65 var breakpoints = WebInspector.breakpointManager._storage._setti ng.get();
66 InspectorTest.assertEquals(breakpoints.length, 0, "There should not be any breakpoints in the storage."); 66 InspectorTest.assertEquals(breakpoints.length, 0, "There should not be any breakpoints in the storage.");
67 next(); 67 next();
68 } 68 }
69 } 69 }
70 ]); 70 ]);
71 71
72 } 72 }
73 </script> 73 </script>
74 </head> 74 </head>
75 <body onload="onload()"> 75 <body onload="onload()">
76 <p>Tests the script formatting is working fine with breakpoints. 76 <p>Tests the script formatting is working fine with breakpoints.
77 </p> 77 </p>
78 </body> 78 </body>
79 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698