| 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="../debugger/resources/edit-me.js"></script> | 5 <script src="../debugger/resources/edit-me.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 var textEditor; | 11 var textEditor; |
| 12 var panel = WebInspector.inspectorView.showPanel("sources"); | 12 var panel = WebInspector.inspectorView.showPanel("sources"); |
| 13 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); | 13 InspectorTest.showScriptSource("edit-me.js", didShowScriptSource); |
| 14 | 14 |
| 15 function showReplaceField() | 15 function showReplaceField() |
| 16 { | 16 { |
| 17 var searchableView = WebInspector.panels.sources.searchableView(); | 17 var searchableView = WebInspector.inspectorView.panel("sources").searcha
bleView(); |
| 18 searchableView.showSearchField(); | 18 searchableView.showSearchField(); |
| 19 searchableView._replaceCheckboxElement.click(); | 19 searchableView._replaceCheckboxElement.click(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function runReplaceAll(searchValue, replaceValue) | 22 function runReplaceAll(searchValue, replaceValue) |
| 23 { | 23 { |
| 24 panel.searchableView()._searchInputElement.value = searchValue; | 24 panel.searchableView()._searchInputElement.value = searchValue; |
| 25 panel.searchableView()._replaceInputElement.value = replaceValue; | 25 panel.searchableView()._replaceInputElement.value = replaceValue; |
| 26 panel.searchableView()._replaceAll(); | 26 panel.searchableView()._replaceAll(); |
| 27 } | 27 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 </script> | 62 </script> |
| 63 | 63 |
| 64 </head> | 64 </head> |
| 65 | 65 |
| 66 <body onload="runTest()"> | 66 <body onload="runTest()"> |
| 67 <p>Tests the search replace functionality.</p> | 67 <p>Tests the search replace functionality.</p> |
| 68 | 68 |
| 69 </body> | 69 </body> |
| 70 </html> | 70 </html> |
| OLD | NEW |