| Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c09fe3842687977e9362cc4c229b113c35e76703
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html
|
| @@ -0,0 +1,44 @@
|
| +<html>
|
| +<head>
|
| +<script src="../inspector-test.js"></script>
|
| +<script src="../debugger-test.js"></script>
|
| +<script src="../workspace-test.js"></script>
|
| +<script src="../search/search-test.js"></script>
|
| +<script src="../isolated-filesystem-test.js"></script>
|
| +<script src="./persistence-test.js"></script>
|
| +<script src="./resources/foo.js"></script>
|
| +<script>
|
| +
|
| +function test()
|
| +{
|
| + var fs = new InspectorTest.TestFileSystem("file:///var/www");
|
| + var fsEntry = InspectorTest.addFooJSFile(fs);
|
| + fs.addFileMapping("http://127.0.0.1:8000", "/");
|
| + fs.reportCreated(function() { });
|
| + InspectorTest.waitForBinding("foo.js").then(onBindingCreated);
|
| +
|
| + function onBindingCreated()
|
| + {
|
| + InspectorTest.addResult("BindingCreated");
|
| + var scope = new WebInspector.SourcesSearchScope();
|
| + var searchConfig = new WebInspector.SearchConfig("window f:foo", true, false);
|
| + InspectorTest.runSearchAndDumpResults(scope, searchConfig, true, InspectorTest.completeTest);
|
| + }
|
| +
|
| + InspectorFrontendHost.searchInPath = function(requestId, path, query)
|
| + {
|
| + setTimeout(reply);
|
| +
|
| + function reply()
|
| + {
|
| + var paths = ["/var/www" + fsEntry.fullPath];
|
| + WebInspector.isolatedFileSystemManager._onSearchCompleted({data: {requestId: requestId, fileSystemPath: path, files: paths}});
|
| + }
|
| + }
|
| +};
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Verify that search across all files filters out matches in uiSourceCodes with fileSystem binding.</p>
|
| +</body>
|
| +</html>
|
|
|