OLD | NEW |
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 Loading... |
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> |
OLD | NEW |