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

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

Issue 202043002: DevTools: Use open resource dialog for go to line feature in sources panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 9 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 | Source/devtools/front_end/FilteredItemSelectionDialog.js » ('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 {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 dumpSelection(panel.visibleView.textEditor, "Initial state"); 237 dumpSelection(panel.visibleView.textEditor, "Initial state");
238 238
239 InspectorTest.waitForScriptSource("example-fileset-for-test.js", onS criptSourceLoaded); 239 InspectorTest.waitForScriptSource("example-fileset-for-test.js", onS criptSourceLoaded);
240 function onScriptSourceLoaded(uiSourceCode) 240 function onScriptSourceLoaded(uiSourceCode)
241 { 241 {
242 var jumps = [20, 10, 30]; 242 var jumps = [20, 10, 30];
243 for (var i = 0; i < jumps.length; ++i) { 243 for (var i = 0; i < jumps.length; ++i) {
244 panel.showUISourceCode(uiSourceCode, jumps[i]); 244 panel.showUISourceCode(uiSourceCode, jumps[i]);
245 dumpSelection(panel.visibleView.textEditor, "jump to line " + jumps[i]); 245 dumpSelection(panel.visibleView.textEditor, "jump to line " + jumps[i]);
246 } 246 }
247 panel.highlightPosition(40, 10); 247 panel.showUISourceCode(uiSourceCode, 40, 10);
248 dumpSelection(panel.visibleView.textEditor, "highlight line 40") ; 248 dumpSelection(panel.visibleView.textEditor, "highlight line 40") ;
249 for (var i = 0; i < jumps.length + 1; ++i) { 249 for (var i = 0; i < jumps.length + 1; ++i) {
250 rollback(); 250 rollback();
251 dumpSelection(panel.visibleView.textEditor, "rollback"); 251 dumpSelection(panel.visibleView.textEditor, "rollback");
252 } 252 }
253 next(); 253 next();
254 } 254 }
255 } 255 }
256 ]); 256 ]);
257 }; 257 };
258 </script> 258 </script>
259 </head> 259 </head>
260 <body onload="runTest()"> 260 <body onload="runTest()">
261 <p>Tests that jumping to previous location works as intended.</p> 261 <p>Tests that jumping to previous location works as intended.</p>
262 </body> 262 </body>
263 </html> 263 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/FilteredItemSelectionDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698