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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/sources-search-scope-many-projects.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 } 50 }
51 51
52 addNetworkUISourceCode("http://localhost/search.html", resources["search .html"]); 52 addNetworkUISourceCode("http://localhost/search.html", resources["search .html"]);
53 jsNetworkUISourceCode = addNetworkUISourceCode("http://localhost/search. js", resources["search.js"]); 53 jsNetworkUISourceCode = addNetworkUISourceCode("http://localhost/search. js", resources["search.js"]);
54 InspectorTest.runTestSuite(testSuite); 54 InspectorTest.runTestSuite(testSuite);
55 } 55 }
56 56
57 function loadResource(name) 57 function loadResource(name)
58 { 58 {
59 var urlPrefix = InspectorTest.resourceTreeModel.inspectedPageURL().subst r(0, InspectorTest.resourceTreeModel.inspectedPageURL().lastIndexOf("/") + 1); 59 var urlPrefix = InspectorTest.mainTarget.inspectedURL().substr(0, Inspec torTest.mainTarget.inspectedURL().lastIndexOf("/") + 1);
60 var url = urlPrefix + "resources/" + name; 60 var url = urlPrefix + "resources/" + name;
61 return loadResourcePromise(url).then(function(text) { 61 return loadResourcePromise(url).then(function(text) {
62 resources[name] = text; 62 resources[name] = text;
63 }); 63 });
64 } 64 }
65 65
66 function addNetworkUISourceCode(url, content) 66 function addNetworkUISourceCode(url, content)
67 { 67 {
68 var contentProvider = WebInspector.StaticContentProvider.fromString(url, WebInspector.resourceTypes.Script, content); 68 var contentProvider = WebInspector.StaticContentProvider.fromString(url, WebInspector.resourceTypes.Script, content);
69 var networkProject = WebInspector.NetworkProject.forTarget(WebInspector. targetManager.mainTarget()); 69 var networkProject = WebInspector.NetworkProject.forTarget(WebInspector. targetManager.mainTarget());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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