| 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="../workspace-test.js"></script> | 6 <script src="../workspace-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 var fileSystemPath = "/var/www"; | 10 var fileSystemPath = "/var/www"; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 var searchConfig = new WebInspector.SearchConfig(query, true, false)
; | 184 var searchConfig = new WebInspector.SearchConfig(query, true, false)
; |
| 185 runSearchAndDumpResults(searchConfig, next); | 185 runSearchAndDumpResults(searchConfig, next); |
| 186 }, | 186 }, |
| 187 | 187 |
| 188 function testSeveralQueriesFileNotCSS(next) | 188 function testSeveralQueriesFileNotCSS(next) |
| 189 { | 189 { |
| 190 var query = "searchTest" + "Unique" + " -file:css " + " space" + " S
tring"; | 190 var query = "searchTest" + "Unique" + " -file:css " + " space" + " S
tring"; |
| 191 var searchConfig = new WebInspector.SearchConfig(query, true, false)
; | 191 var searchConfig = new WebInspector.SearchConfig(query, true, false)
; |
| 192 runSearchAndDumpResults(searchConfig, next); | 192 runSearchAndDumpResults(searchConfig, next); |
| 193 }, | 193 }, |
| 194 |
| 195 function testFileQueryWithProjectName(next) |
| 196 { |
| 197 InspectorTest.addResult("Running a file query with existing project
name first:"); |
| 198 var query = "searchTest" + "Unique" + " file:www"; |
| 199 var searchConfig = new WebInspector.SearchConfig(query, true, false)
; |
| 200 runSearchAndDumpResults(searchConfig, step2); |
| 201 |
| 202 function step2() |
| 203 { |
| 204 InspectorTest.addResult("Running a file query with non-existing
project name now:"); |
| 205 query = "searchTest" + "Unique" + " file:zzz"; |
| 206 searchConfig = new WebInspector.SearchConfig(query, true, false)
; |
| 207 runSearchAndDumpResults(searchConfig, next); |
| 208 } |
| 209 }, |
| 194 ]); | 210 ]); |
| 195 } | 211 } |
| 196 | 212 |
| 197 </script> | 213 </script> |
| 198 </head> | 214 </head> |
| 199 <body onload="runTest()"> | 215 <body onload="runTest()"> |
| 200 <iframe src="resources/search.html"> | 216 <iframe src="resources/search.html"> |
| 201 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> | 217 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> |
| 202 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 218 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. |
| 203 </body> | 219 </body> |
| 204 </html> | 220 </html> |
| OLD | NEW |