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

Unified Diff: LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
diff --git a/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html b/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
index 8a0d6903385bd79efc6772208bff8ca8a7ad819c..4071a05a1230db72440427ed1d62e232acc6dc4d 100644
--- a/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
+++ b/LayoutTests/http/tests/inspector/search/sources-search-scope-in-files.html
@@ -4,6 +4,7 @@
<script src="../inspector-test.js"></script>
<script src="../isolated-filesystem-test.js"></script>
<script src="../workspace-test.js"></script>
+<script src="../debugger-test.js"></script>
<script>
function test()
{
@@ -207,6 +208,23 @@ function test()
runSearchAndDumpResults(searchConfig, next);
}
},
+
+ function testDirtyFiles(next)
+ {
+ var uiSourceCode;
+ var uiSourceCodes = InspectorTest.testWorkspace.uiSourceCodes();
+ for (var i = 0; i < uiSourceCodes.length; ++i) {
+ if (uiSourceCodes[i].name() === "search.js") {
+ uiSourceCode = uiSourceCodes[i];
+ break;
+ }
+ }
+
+ uiSourceCode.setWorkingCopy("FOO " + "searchTest" + "UniqueString" + " BAR");
+ var query = "searchTest" + "UniqueString";
+ var searchConfig = new WebInspector.SearchConfig(query, true, false);
+ runSearchAndDumpResults(searchConfig, next);
+ }
]);
}

Powered by Google App Engine
This is Rietveld 408576698