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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.html

Issue 2867783003: DevTools: move IsolatedFileSystem/IsolatedFileSystemManager into persistence/ (Closed)
Patch Set: fix order Created 3 years, 7 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
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="../debugger-test.js"></script> 6 <script src="../debugger-test.js"></script>
7 <script src="./search-test.js"></script> 7 <script src="./search-test.js"></script>
8 <script> 8 <script>
9 function test() 9 function test()
10 { 10 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 InspectorFrontendHost.searchInPath = function(requestId, path, query) 74 InspectorFrontendHost.searchInPath = function(requestId, path, query)
75 { 75 {
76 setTimeout(reply); 76 setTimeout(reply);
77 77
78 function reply() 78 function reply()
79 { 79 {
80 var paths = []; 80 var paths = [];
81 for (var i = 0; i < names.length; ++i) 81 for (var i = 0; i < names.length; ++i)
82 paths.push("/var/www/" + names[i]); 82 paths.push("/var/www/" + names[i]);
83 Workspace.isolatedFileSystemManager._onSearchCompleted({data: {reque stId: requestId, fileSystemPath: path, files: paths}}); 83 Persistence.isolatedFileSystemManager._onSearchCompleted({data: {req uestId: requestId, fileSystemPath: path, files: paths}});
84 } 84 }
85 } 85 }
86 86
87 var testSuite = [ 87 var testSuite = [
88 function testSearch(next) 88 function testSearch(next)
89 { 89 {
90 var query = "searchTest" + "UniqueString"; 90 var query = "searchTest" + "UniqueString";
91 var searchConfig = new Workspace.SearchConfig(query, true, false); 91 var searchConfig = new Workspace.SearchConfig(query, true, false);
92 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); 92 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next);
93 }, 93 },
94 94
95 function testDirtyFiles(next) 95 function testDirtyFiles(next)
96 { 96 {
97 jsFileSystemUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Uni queString" + " BAR"); 97 jsFileSystemUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Uni queString" + " BAR");
98 jsNetworkUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Unique String" + " BAR"); 98 jsNetworkUISourceCode.setWorkingCopy("FOO " + "searchTest" + "Unique String" + " BAR");
99 99
100 var query = "searchTest" + "UniqueString"; 100 var query = "searchTest" + "UniqueString";
101 var searchConfig = new Workspace.SearchConfig(query, true, false); 101 var searchConfig = new Workspace.SearchConfig(query, true, false);
102 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next); 102 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next);
103 } 103 }
104 ]; 104 ];
105 } 105 }
106 106
107 </script> 107 </script>
108 </head> 108 </head>
109 <body onload="runTest()"> 109 <body onload="runTest()">
110 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p> 110 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p>
111 </body> 111 </body>
112 </html> 112 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698