Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-search-across-all-files.html

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: reupload Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698