| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../debugger-test.js"></script> |
| 5 <script src="../workspace-test.js"></script> |
| 6 <script src="../search/search-test.js"></script> |
| 7 <script src="../isolated-filesystem-test.js"></script> |
| 8 <script src="./persistence-test.js"></script> |
| 9 <script src="./resources/foo.js"></script> |
| 10 <script> |
| 11 |
| 12 function test() |
| 13 { |
| 14 var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
| 15 var fsEntry = InspectorTest.addFooJSFile(fs); |
| 16 fs.addFileMapping("http://127.0.0.1:8000", "/"); |
| 17 fs.reportCreated(function() { }); |
| 18 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); |
| 19 |
| 20 function onBindingCreated() |
| 21 { |
| 22 InspectorTest.addResult("BindingCreated"); |
| 23 var scope = new WebInspector.SourcesSearchScope(); |
| 24 var searchConfig = new WebInspector.SearchConfig("window f:foo", true, f
alse); |
| 25 InspectorTest.runSearchAndDumpResults(scope, searchConfig, true, Inspect
orTest.completeTest); |
| 26 } |
| 27 |
| 28 InspectorFrontendHost.searchInPath = function(requestId, path, query) |
| 29 { |
| 30 setTimeout(reply); |
| 31 |
| 32 function reply() |
| 33 { |
| 34 var paths = ["/var/www" + fsEntry.fullPath]; |
| 35 WebInspector.isolatedFileSystemManager._onSearchCompleted({data: {re
questId: requestId, fileSystemPath: path, files: paths}}); |
| 36 } |
| 37 } |
| 38 }; |
| 39 </script> |
| 40 </head> |
| 41 <body onload="runTest()"> |
| 42 <p>Verify that search across all files filters out matches in uiSourceCodes with
fileSystem binding.</p> |
| 43 </body> |
| 44 </html> |
| OLD | NEW |