| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 paths.push("/var/www/" + names[i]); | 90 paths.push("/var/www/" + names[i]); |
| 91 Workspace.isolatedFileSystemManager._onSearchCompleted({data: {reque
stId: requestId, fileSystemPath: path, files: paths}}); | 91 Workspace.isolatedFileSystemManager._onSearchCompleted({data: {reque
stId: requestId, fileSystemPath: path, files: paths}}); |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 var testSuite = [ | 95 var testSuite = [ |
| 96 function testSearch(next) | 96 function testSearch(next) |
| 97 { | 97 { |
| 98 var query = "searchTest" + "UniqueString"; | 98 var query = "searchTest" + "UniqueString"; |
| 99 var searchConfig = new Workspace.SearchConfig(query, true, false); | 99 var searchConfig = new Workspace.SearchConfig(query, true, false); |
| 100 InspectorTest.runSearchAndDumpResults(scope, searchConfig, false, ne
xt); | 100 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); |
| 101 }, | 101 }, |
| 102 | 102 |
| 103 function testDirtyFiles(next) | 103 function testDirtyFiles(next) |
| 104 { | 104 { |
| 105 jsFileSystemUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Uni
queString" + " BAR"); | 105 jsFileSystemUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Uni
queString" + " BAR"); |
| 106 jsNetworkUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Unique
String" + " BAR"); | 106 jsNetworkUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Unique
String" + " BAR"); |
| 107 | 107 |
| 108 var query = "searchTest" + "UniqueString"; | 108 var query = "searchTest" + "UniqueString"; |
| 109 var searchConfig = new Workspace.SearchConfig(query, true, false); | 109 var searchConfig = new Workspace.SearchConfig(query, true, false); |
| 110 InspectorTest.runSearchAndDumpResults(scope, searchConfig, false, ne
xt); | 110 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); |
| 111 } | 111 } |
| 112 ]; | 112 ]; |
| 113 } | 113 } |
| 114 | 114 |
| 115 </script> | 115 </script> |
| 116 </head> | 116 </head> |
| 117 <body onload="runTest()"> | 117 <body onload="runTest()"> |
| 118 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p> | 118 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p> |
| 119 </body> | 119 </body> |
| 120 </html> | 120 </html> |
| OLD | NEW |