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

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

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 4 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="../workspace-test.js"></script> 6 <script src="../workspace-test.js"></script>
7 <script src="../debugger-test.js"></script> 7 <script src="../debugger-test.js"></script>
8 <script src="./search-test.js"></script> 8 <script src="./search-test.js"></script>
9 <script> 9 <script>
10 function test() 10 function test()
(...skipping 23 matching lines...) Expand all
34 34
35 function fileSystemCreated() 35 function fileSystemCreated()
36 { 36 {
37 InspectorTest.addResult("Total uiSourceCodes: " + WebInspector.works pace.uiSourceCodes().length); 37 InspectorTest.addResult("Total uiSourceCodes: " + WebInspector.works pace.uiSourceCodes().length);
38 InspectorTest.runTestSuite(testSuite); 38 InspectorTest.runTestSuite(testSuite);
39 } 39 }
40 } 40 }
41 41
42 function populateFileSystem(name) 42 function populateFileSystem(name)
43 { 43 {
44 var urlPrefix = InspectorTest.resourceTreeModel.inspectedPageURL().subst r(0, InspectorTest.resourceTreeModel.inspectedPageURL().lastIndexOf("/") + 1); 44 var urlPrefix = InspectorTest.mainTarget.inspectedURL().substr(0, Inspec torTest.mainTarget.inspectedURL().lastIndexOf("/") + 1);
45 var url = urlPrefix + "resources/" + name; 45 var url = urlPrefix + "resources/" + name;
46 return loadResourcePromise(url).then(function(text) { 46 return loadResourcePromise(url).then(function(text) {
47 fs.root.addFile(name, text); 47 fs.root.addFile(name, text);
48 }); 48 });
49 } 49 }
50 50
51 InspectorFrontendHost.searchInPath = function(requestId, path, query) 51 InspectorFrontendHost.searchInPath = function(requestId, path, query)
52 { 52 {
53 setTimeout(reply); 53 setTimeout(reply);
54 54
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 ]; 195 ];
196 } 196 }
197 197
198 </script> 198 </script>
199 </head> 199 </head>
200 <body onload="runTest()"> 200 <body onload="runTest()">
201 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p > 201 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p >
202 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. 202 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
203 </body> 203 </body>
204 </html> 204 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698