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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../resources-test.js"></script> 4 <script src="../resources-test.js"></script>
5 <script src="../debugger-test.js"></script> 5 <script src="../debugger-test.js"></script>
6 <script src="search-test.js"></script> 6 <script src="search-test.js"></script>
7 <script> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 // This file should not match search query.
11 var text = "searchTest" + "UniqueString";
12 InspectorTest.startDebuggerTest(step1); 10 InspectorTest.startDebuggerTest(step1);
11 var script;
13 12
14 function step1() 13 function step1()
15 { 14 {
16 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2); 15 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2);
17 } 16 }
18 17
19 function step2() 18 function step2()
20 { 19 {
21 InspectorTest.showScriptSource("search.js", step3); 20 InspectorTest.showScriptSource("search.js", step3);
22 } 21 }
23 22
24 function step3() 23 function step3()
25 { 24 {
26 var scripts = WebInspector.debuggerModel.scriptsForURL("http://127.0.0.1 :8000/inspector/search/resources/search.js"); 25 var scripts = WebInspector.debuggerModel.scriptsForURL("http://127.0.0.1 :8000/inspector/search/resources/search.js");
27 var script = scripts[0]; 26 script = scripts[0];
28 InspectorTest.addResult(script.sourceURL); 27 InspectorTest.addResult(script.sourceURL);
29 script.searchInContent(text, step4); 28
29 // This file should not match search query.
30 var text = "searchTest" + "UniqueString";
31 script.searchInContent(text, false, false, step4);
30 } 32 }
31 33
32 function step4(searchMatches) 34 function step4(searchMatches)
33 { 35 {
34 InspectorTest.dumpSearchMatches(searchMatches); 36 InspectorTest.dumpSearchMatches(searchMatches);
37
38 // This file should not match search query.
39 var text = "searchTest" + "UniqueString";
40 script.searchInContent(text, true, false, step5);
41 }
42
43 function step5(searchMatches)
44 {
45 InspectorTest.dumpSearchMatches(searchMatches);
46
47 var text = "[a-z]earchTestUniqueString";
48 script.searchInContent(text, false, true, step6);
49 }
50
51 function step6(searchMatches)
52 {
53 InspectorTest.dumpSearchMatches(searchMatches);
54
55 var text = "[a-z]earchTestUniqueString";
56 script.searchInContent(text, true, true, step7);
57 }
58
59 function step7(searchMatches)
60 {
61 InspectorTest.dumpSearchMatches(searchMatches);
62
35 InspectorTest.completeDebuggerTest(); 63 InspectorTest.completeDebuggerTest();
36 } 64 }
37 } 65 }
38 </script> 66 </script>
39 </head> 67 </head>
40 <body> 68 <body>
41 <p>Tests script search in inspector debugger agent.</p> 69 <p>Tests script search in inspector debugger agent.</p>
42 <a href="https://bugs.webkit.org/show_bug.cgi?id=69015">Bug 69015</a> 70 <a href="https://bugs.webkit.org/show_bug.cgi?id=69015">Bug 69015</a>
43 71
44 <iframe src="resources/search.html" onload="runTest()"> 72 <iframe src="resources/search.html" onload="runTest()">
45 </body> 73 </body>
46 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698