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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/editor/text-editor-selection-to-search.html

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 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
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="../sources/debugger/resources/edit-me.js"></script> 5 <script src="../sources/debugger/resources/edit-me.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
(...skipping 18 matching lines...) Expand all
29 InspectorTest.completeTest(); 29 InspectorTest.completeTest();
30 } 30 }
31 31
32 function findString(sourceFrame, string) 32 function findString(sourceFrame, string)
33 { 33 {
34 for (var i = 0; i < sourceFrame._textEditor.linesCount; ++i) { 34 for (var i = 0; i < sourceFrame._textEditor.linesCount; ++i) {
35 var line = sourceFrame._textEditor.line(i); 35 var line = sourceFrame._textEditor.line(i);
36 var column = line.indexOf(string); 36 var column = line.indexOf(string);
37 if (column === -1) 37 if (column === -1)
38 continue; 38 continue;
39 return new Common.TextRange(i, column, i, column + string.length); 39 return new TextUtils.TextRange(i, column, i, column + string.length) ;
40 } 40 }
41 } 41 }
42 } 42 }
43 </script> 43 </script>
44 44
45 </head> 45 </head>
46 46
47 <body onload="runTest()"> 47 <body onload="runTest()">
48 <p>Tests synchronizing the search input field to the editor selection.</p> 48 <p>Tests synchronizing the search input field to the editor selection.</p>
49 49
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698