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

Side by Side Diff: LayoutTests/inspector/jump-to-previous-editing-location.html

Issue 290393002: DevTools: more excessive dumping for jump-to-previous-position.html test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/inspector/jump-to-previous-editing-location-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/workspace-test.js"></script> 4 <script src="../http/tests/inspector/workspace-test.js"></script>
5 <script src="../http/tests/inspector/debugger-test.js"></script> 5 <script src="../http/tests/inspector/debugger-test.js"></script>
6 <script src="resources/example-fileset-for-test.js"></script> 6 <script src="resources/example-fileset-for-test.js"></script>
7 <script src="editor/editor-test.js"></script> 7 <script src="editor/editor-test.js"></script>
8 <script> 8 <script>
9 function test() 9 function test()
10 { 10 {
11 WebInspector.inspectorView.showPanel("sources"); 11 WebInspector.inspectorView.showPanel("sources");
12 var panel = WebInspector.panels.sources; 12 var panel = WebInspector.panels.sources;
13 var sourcesView = panel._sourcesView; 13 var sourcesView = panel._sourcesView;
14 var historyManager = sourcesView._historyManager; 14 var historyManager = sourcesView._historyManager;
15 var editorContainer = sourcesView._editorContainer; 15 var editorContainer = sourcesView._editorContainer;
16 InspectorTest.addSniffer(historyManager._historyManager, "filterOut", functi on() {
17 InspectorTest.addResult("executed SimpleHistoryManager.filterOut; active EntryIndex = " + historyManager._historyManager._activeEntryIndex);
18 }, true);
16 19
17 function rollback() 20 function rollback()
18 { 21 {
19 historyManager.rollback(); 22 historyManager.rollback();
20 } 23 }
21 24
22 function rollover() 25 function rollover()
23 { 26 {
24 historyManager.rollover(); 27 historyManager.rollover();
25 } 28 }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 next(); 178 next();
176 }, 179 },
177 180
178 function testHistoryDepth(next) 181 function testHistoryDepth(next)
179 { 182 {
180 function dumpSimpleHistoryManagerState(title) 183 function dumpSimpleHistoryManagerState(title)
181 { 184 {
182 var simpleHistoryManager = historyManager._historyManager; 185 var simpleHistoryManager = historyManager._historyManager;
183 var entries = simpleHistoryManager._entries; 186 var entries = simpleHistoryManager._entries;
184 InspectorTest.addResult("=== SimpleHistoryManager state " + titl e + " ==="); 187 InspectorTest.addResult("=== SimpleHistoryManager state " + titl e + " ===");
185 InspectorTest.addResult("entries count: " + entries.length); 188 InspectorTest.addResult("entries count: " + entries.length + " a ctive entry index: " + simpleHistoryManager._activeEntryIndex);
186 for (var i = entries.length - 1; i >= 0; --i) { 189 for (var i = entries.length - 1; i >= 0; --i) {
187 var position = entries[i]._positionHandle.resolve(); 190 var position = entries[i]._positionHandle.resolve();
188 var positionText = position ? "{line: " + position.lineNumbe r + ", column: " + position.columnNumber + "}" : position + ""; 191 var positionText = position ? "{line: " + position.lineNumbe r + ", column: " + position.columnNumber + "}" : position + "";
189 var positionMarker = simpleHistoryManager._activeEntryIndex === i ? ">" : " "; 192 var positionMarker = simpleHistoryManager._activeEntryIndex === i ? ">" : " ";
190 InspectorTest.addResult(positionMarker + "entry[" + i + "] = " + positionText); 193 InspectorTest.addResult(positionMarker + "entry[" + i + "] = " + positionText);
191 } 194 }
192 InspectorTest.addResult("=== ==="); 195 InspectorTest.addResult("=== ===");
193 } 196 }
194 var lines = []; 197 var lines = [];
195 var columns = []; 198 var columns = [];
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 283 }
281 } 284 }
282 ]); 285 ]);
283 }; 286 };
284 </script> 287 </script>
285 </head> 288 </head>
286 <body onload="runTest()"> 289 <body onload="runTest()">
287 <p>Tests that jumping to previous location works as intended.</p> 290 <p>Tests that jumping to previous location works as intended.</p>
288 </body> 291 </body>
289 </html> 292 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/jump-to-previous-editing-location-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698