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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/search/sources-search-scope.html

Issue 267393003: DevTools: Load document (html) content from disk cache in page agent enabling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Change inspected iframe's "src" attribute.</title> 3 <title>Change inspected iframe's "src" attribute.</title>
4 <script src="../inspector-test.js"></script> 4 <script src="../../inspector/inspector-test.js"></script>
5 <script src="../resources-test.js"></script> 5 <script src="../../inspector/resources-test.js"></script>
6 <script> 6 <script>
7 function onload()
8 {
9 if (window.testRunner) {
10 testRunner.waitUntilDone();
11 testRunner.showWebInspector();
12 }
13 runTest();
14 }
15
7 function test() 16 function test()
8 { 17 {
9 InspectorTest.reloadPage(step1); 18 WebInspector.inspectorView.showPanel("sources");
10 19 WebInspector.inspectorView.showViewInDrawer("search");
11 function step1() 20 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "sea rch.css"], step2)
12 {
13 WebInspector.inspectorView.showPanel("sources");
14 WebInspector.inspectorView.showViewInDrawer("search");
15 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
16 }
17 21
18 function runSearchAndDumpResults(searchConfig, callback) 22 function runSearchAndDumpResults(searchConfig, callback)
19 { 23 {
20 var scope = new WebInspector.SourcesSearchScope(); 24 var scope = new WebInspector.SourcesSearchScope();
21 var searchResults = []; 25 var searchResults = [];
22 var progress = new WebInspector.Progress(); 26 var progress = new WebInspector.Progress();
23 scope.performSearch(searchConfig, progress, searchResultCallback, search FinishedCallback); 27 scope.performSearch(searchConfig, progress, searchResultCallback, search FinishedCallback);
24 28
25 function searchResultCallback(searchResult) 29 function searchResultCallback(searchResult)
26 { 30 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 var searchConfig = new WebInspector.SearchConfig(query, true, fa lse); 128 var searchConfig = new WebInspector.SearchConfig(query, true, fa lse);
125 runSearchAndDumpResults(searchConfig, next); 129 runSearchAndDumpResults(searchConfig, next);
126 }, 130 },
127 131
128 ]); 132 ]);
129 } 133 }
130 } 134 }
131 135
132 </script> 136 </script>
133 </head> 137 </head>
134 <body onload="runTest()"> 138 <body onload="onload()">
135 <iframe src="resources/search.html"> 139 <iframe src="../../inspector/search/resources/search.html">
136 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p > 140 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p >
137 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. 141 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
138 </body> 142 </body>
139 </html> 143 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698