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

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

Issue 400673002: DevTools: Fix dirty files handling in search across all files. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/search/sources-search-scope-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/inspector-test.js"></script>
5 <script src="../../inspector/resources-test.js"></script> 5 <script src="../../inspector/resources-test.js"></script>
6 <script src="../../inspector/network-test.js"></script> 6 <script src="../../inspector/network-test.js"></script>
7 <script src="../../inspector/debugger-test.js"></script>
7 <script> 8 <script>
8 function onload() 9 function onload()
9 { 10 {
10 if (window.testRunner) 11 if (window.testRunner)
11 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
12 // Since this test could be run together with other inspector backend cache 13 // Since this test could be run together with other inspector backend cache
13 // tests, we need to reset size limits to default ones. 14 // tests, we need to reset size limits to default ones.
14 resetInspectorResourcesData(); 15 resetInspectorResourcesData();
15 16
16 if (window.testRunner) 17 if (window.testRunner)
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 runSearchAndDumpResults(searchConfig, step2); 171 runSearchAndDumpResults(searchConfig, step2);
171 172
172 function step2() 173 function step2()
173 { 174 {
174 InspectorTest.addResult("Running a file query with non-exist ing project name now:"); 175 InspectorTest.addResult("Running a file query with non-exist ing project name now:");
175 query = "searchTest" + "Unique" + " file:128.0.0.1"; 176 query = "searchTest" + "Unique" + " file:128.0.0.1";
176 searchConfig = new WebInspector.SearchConfig(query, true, fa lse); 177 searchConfig = new WebInspector.SearchConfig(query, true, fa lse);
177 runSearchAndDumpResults(searchConfig, next); 178 runSearchAndDumpResults(searchConfig, next);
178 } 179 }
179 }, 180 },
181
182 function testDirtyFiles(next)
183 {
184 InspectorTest.showScriptSource("search.js", step2);
185
186 function step2(sourceFrame)
187 {
188 sourceFrame.uiSourceCode().setWorkingCopy("FOO " + "searchTe st" + "UniqueString" + " BAR");
189 var query = "searchTest" + "UniqueString";
190 var searchConfig = new WebInspector.SearchConfig(query, true , false);
191 runSearchAndDumpResults(searchConfig, next);
192 }
193 }
180 ]); 194 ]);
181 } 195 }
182 } 196 }
183 197
184 </script> 198 </script>
185 </head> 199 </head>
186 <body onload="onload()"> 200 <body onload="onload()">
187 <iframe src="../../inspector/search/resources/search.html"> 201 <iframe src="../../inspector/search/resources/search.html">
188 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p > 202 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p >
189 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. 203 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
190 </body> 204 </body>
191 </html> 205 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/search/sources-search-scope-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698