| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../debugger-test.js"></script> | 4 <script src="../debugger-test.js"></script> |
| 5 <script src="../sources-test.js"></script> | 5 <script src="../sources-test.js"></script> |
| 6 <script src="./search-test.js"></script> | 6 <script src="./search-test.js"></script> |
| 7 <script src="resources/search.js"></script> | 7 <script src="resources/search.js"></script> |
| 8 <script> | 8 <script> |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 | 11 |
| 12 WebInspector.viewManager.showView("sources"); | 12 UI.viewManager.showView("sources"); |
| 13 InspectorTest.showScriptSource("search.js", didShowScriptSource); | 13 InspectorTest.showScriptSource("search.js", didShowScriptSource); |
| 14 | 14 |
| 15 function didShowScriptSource(sourceFrame) | 15 function didShowScriptSource(sourceFrame) |
| 16 { | 16 { |
| 17 var searchConfig = new WebInspector.SearchableView.SearchConfig("replace
Me1", false, false); | 17 var searchConfig = new UI.SearchableView.SearchConfig("replaceMe1", fals
e, false); |
| 18 InspectorTest.replaceAndDumpChange(sourceFrame, searchConfig, "replaced"
, false); | 18 InspectorTest.replaceAndDumpChange(sourceFrame, searchConfig, "replaced"
, false); |
| 19 | 19 |
| 20 var searchConfig = new WebInspector.SearchableView.SearchConfig("replace
Me2", false, false); | 20 var searchConfig = new UI.SearchableView.SearchConfig("replaceMe2", fals
e, false); |
| 21 InspectorTest.replaceAndDumpChange(sourceFrame, searchConfig, "replaced"
, true); | 21 InspectorTest.replaceAndDumpChange(sourceFrame, searchConfig, "replaced"
, true); |
| 22 | 22 |
| 23 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
| 24 } | 24 } |
| 25 }; | 25 }; |
| 26 </script> | 26 </script> |
| 27 </head> | 27 </head> |
| 28 <body onload="runTest()"> | 28 <body onload="runTest()"> |
| 29 <p>Tests different types of search-and-replace in SourceFrame</p> | 29 <p>Tests different types of search-and-replace in SourceFrame</p> |
| 30 </body> | 30 </body> |
| 31 </html> | 31 </html> |
| OLD | NEW |