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

Unified Diff: LayoutTests/http/tests/inspector/search/search-in-script.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-script.html
===================================================================
--- LayoutTests/http/tests/inspector/search/search-in-script.html (revision 98111)
+++ LayoutTests/http/tests/inspector/search/search-in-script.html (working copy)
@@ -7,9 +7,8 @@
<script>
function test()
{
- // This file should not match search query.
- var text = "searchTest" + "UniqueString";
InspectorTest.startDebuggerTest(step1);
+ var script;
function step1()
{
@@ -24,14 +23,43 @@
function step3()
{
var scripts = WebInspector.debuggerModel.scriptsForURL("http://127.0.0.1:8000/inspector/search/resources/search.js");
- var script = scripts[0];
+ script = scripts[0];
InspectorTest.addResult(script.sourceURL);
- script.searchInContent(text, step4);
+
+ // This file should not match search query.
+ var text = "searchTest" + "UniqueString";
+ script.searchInContent(text, false, false, step4);
}
function step4(searchMatches)
{
InspectorTest.dumpSearchMatches(searchMatches);
+
+ // This file should not match search query.
+ var text = "searchTest" + "UniqueString";
+ script.searchInContent(text, true, false, step5);
+ }
+
+ function step5(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
+ var text = "[a-z]earchTestUniqueString";
+ script.searchInContent(text, false, true, step6);
+ }
+
+ function step6(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
+ var text = "[a-z]earchTestUniqueString";
+ script.searchInContent(text, true, true, step7);
+ }
+
+ function step7(searchMatches)
+ {
+ InspectorTest.dumpSearchMatches(searchMatches);
+
InspectorTest.completeDebuggerTest();
}
}

Powered by Google App Engine
This is Rietveld 408576698