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

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

Issue 338253007: Revert "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/inspector-test.js"></script> 4 <script src="../inspector-test.js"></script>
5 <script src="../../inspector/resources-test.js"></script> 5 <script src="../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
16 function test() 7 function test()
17 { 8 {
18 WebInspector.inspectorView.showPanel("sources"); 9 InspectorTest.reloadPage(step1);
19 WebInspector.inspectorView.showViewInDrawer("search"); 10
20 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "sea rch.css"], step2) 11 function step1()
12 {
13 WebInspector.inspectorView.showPanel("sources");
14 WebInspector.inspectorView.showViewInDrawer("search");
15 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "search.css"], step2)
16 }
21 17
22 function runSearchAndDumpResults(searchConfig, callback) 18 function runSearchAndDumpResults(searchConfig, callback)
23 { 19 {
24 var scope = new WebInspector.SourcesSearchScope(); 20 var scope = new WebInspector.SourcesSearchScope();
25 var searchResults = []; 21 var searchResults = [];
26 var progress = new WebInspector.Progress(); 22 var progress = new WebInspector.Progress();
27 scope.performSearch(searchConfig, progress, searchResultCallback, search FinishedCallback); 23 scope.performSearch(searchConfig, progress, searchResultCallback, search FinishedCallback);
28 24
29 function searchResultCallback(searchResult) 25 function searchResultCallback(searchResult)
30 { 26 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 var searchConfig = new WebInspector.SearchConfig(query, true, fa lse); 124 var searchConfig = new WebInspector.SearchConfig(query, true, fa lse);
129 runSearchAndDumpResults(searchConfig, next); 125 runSearchAndDumpResults(searchConfig, next);
130 }, 126 },
131 127
132 ]); 128 ]);
133 } 129 }
134 } 130 }
135 131
136 </script> 132 </script>
137 </head> 133 </head>
138 <body onload="onload()"> 134 <body onload="runTest()">
139 <iframe src="../../inspector/search/resources/search.html"> 135 <iframe src="resources/search.html">
140 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p > 136 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p >
141 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. 137 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
142 </body> 138 </body>
143 </html> 139 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698