| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Test search in sources.</title> | 3 <title>Test search in sources.</title> |
| 4 <script src="../inspector-test.js"></script> | 4 <script src="../inspector-test.js"></script> |
| 5 <script src="../isolated-filesystem-test.js"></script> | 5 <script src="../isolated-filesystem-test.js"></script> |
| 6 <script src="../debugger-test.js"></script> | 6 <script src="../debugger-test.js"></script> |
| 7 <script src="./search-test.js"></script> | 7 <script src="./search-test.js"></script> |
| 8 <script> | 8 <script> |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 InspectorFrontendHost.searchInPath = function(requestId, path, query) | 59 InspectorFrontendHost.searchInPath = function(requestId, path, query) |
| 60 { | 60 { |
| 61 setTimeout(reply); | 61 setTimeout(reply); |
| 62 | 62 |
| 63 function reply() | 63 function reply() |
| 64 { | 64 { |
| 65 var paths = []; | 65 var paths = []; |
| 66 for (var i = 0; i < names.length; ++i) | 66 for (var i = 0; i < names.length; ++i) |
| 67 paths.push("/var/www/" + names[i]); | 67 paths.push("/var/www/" + names[i]); |
| 68 Workspace.isolatedFileSystemManager._onSearchCompleted({data: {reque
stId: requestId, fileSystemPath: path, files: paths}}); | 68 Persistence.isolatedFileSystemManager._onSearchCompleted({data: {req
uestId: requestId, fileSystemPath: path, files: paths}}); |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 var testSuite = [ | 72 var testSuite = [ |
| 73 function testIgnoreCase(next) | 73 function testIgnoreCase(next) |
| 74 { | 74 { |
| 75 var query = "searchTest" + "UniqueString"; | 75 var query = "searchTest" + "UniqueString"; |
| 76 var searchConfig = new Workspace.SearchConfig(query, true, false); | 76 var searchConfig = new Workspace.SearchConfig(query, true, false); |
| 77 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); | 77 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); |
| 78 }, | 78 }, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 ]; | 203 ]; |
| 204 } | 204 } |
| 205 | 205 |
| 206 </script> | 206 </script> |
| 207 </head> | 207 </head> |
| 208 <body onload="runTest()"> | 208 <body onload="runTest()"> |
| 209 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> | 209 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> |
| 210 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 210 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. |
| 211 </body> | 211 </body> |
| 212 </html> | 212 </html> |
| OLD | NEW |