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

Unified Diff: LayoutTests/http/tests/inspector/search/search-in-resource.html

Issue 8371003: Merge 97851 - Web Inspector: Enable caseSensitive search / Regex support in advanced search. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 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/search-in-resource.html
===================================================================
--- LayoutTests/http/tests/inspector/search/search-in-resource.html (revision 98111)
+++ LayoutTests/http/tests/inspector/search/search-in-resource.html (working copy)
@@ -6,20 +6,48 @@
<script>
function test()
{
- // This file should not match search query.
- var text = "searchTest" + "UniqueString";
InspectorTest.runAfterResourcesAreFinished(["search.js"], step2);
+ var resource;
function step2()
{
- var resource = WebInspector.resourceForURL("http://127.0.0.1:8000/inspector/search/resources/search.js");
+ resource = WebInspector.resourceForURL("http://127.0.0.1:8000/inspector/search/resources/search.js");
InspectorTest.addResult(resource.url);
- resource.searchInContent(text, step3);
+
+ // This file should not match search query.
+ var text = "searchTest" + "UniqueString";
+ resource.searchInContent(text, false, false, step3);
}
function step3(searchMatches)
{
InspectorTest.dumpSearchMatches(searchMatches);
+
+ // This file should not match search query.
+ var text = "searchTest" + "UniqueString";
+ resource.searchInContent(text, true, false, step4);
+ }
+
+ function step4(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
+ var text = "[a-z]earchTestUniqueString";
+ resource.searchInContent(text, false, true, step5);
+ }
+
+ function step5(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
+ var text = "[a-z]earchTestUniqueString";
+ resource.searchInContent(text, true, true, step6);
+ }
+
+ function step6(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
InspectorTest.completeTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698