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

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: simplify test 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 var scope = new WebInspector.SourcesSearchScope();
17 fs.reportCreated(function() { });
18
19 InspectorTest.runTestSuite([
20 function waitForUISourceCodes(next)
21 {
22 Promise.all([
23 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project Types.Network),
24 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project Types.FileSystem)
25 ]).then(next);
26 },
27
28 dumpSearchResults,
29
30 function addFileMapping(next)
31 {
32 WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "ht tp://127.0.0.1:8000", "/");
33 InspectorTest.waitForBinding("foo.js").then(next);
34 },
35
36 dumpSearchResults,
37 ]);
38
39 function dumpSearchResults(next)
40 {
41 var searchConfig = new WebInspector.SearchConfig("window.foo f:foo", tru e, false);
42 InspectorTest.runSearchAndDumpResults(scope, searchConfig, true, next);
43 }
44
45 InspectorFrontendHost.searchInPath = function(requestId, path, query)
46 {
47 setTimeout(reply);
48
49 function reply()
50 {
51 var paths = ["/var/www" + fsEntry.fullPath];
52 WebInspector.isolatedFileSystemManager._onSearchCompleted({data: {re questId: requestId, fileSystemPath: path, files: paths}});
53 }
54 }
55 };
56 </script>
57 </head>
58 <body onload="runTest()">
59 <p>Verify that search across all files omits filesystem uiSourceCodes with bindi ng to network.</p>
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698