OLD | NEW |
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. | 10 // This file should not match search query. |
11 var text = "searchTest" + "UniqueString"; | 11 var text = "searchTest" + "UniqueString"; |
12 InspectorTest.startDebuggerTest(step1); | 12 InspectorTest.startDebuggerTest(step1); |
13 | 13 |
14 function step1() | 14 function step1() |
15 { | 15 { |
16 InspectorTest.runAfterResourcesAreFinished(["search-concatenated.html"],
step2); | 16 InspectorTest.runAfterResourcesAreFinished(["search-concatenated.html"],
step2); |
17 } | 17 } |
18 | 18 |
19 function step2() | 19 function step2() |
20 { | 20 { |
21 InspectorTest.showScriptSource("search-concatenated.html", step3); | 21 InspectorTest.showScriptSource("search-concatenated.html", step3); |
22 } | 22 } |
23 | 23 |
24 function step3() | 24 function step3() |
25 { | 25 { |
26 var url = "http://127.0.0.1:8000/inspector/search/resources/search-conca
tenated.html"; | 26 var url = "http://127.0.0.1:8000/inspector/search/resources/search-conca
tenated.html"; |
27 var scripts = WebInspector.debuggerModel.scriptsForURL(url); | 27 var scripts = WebInspector.debuggerModel.scriptsForURL(url); |
28 var contentProvider = new WebInspector.ConcatenatedScriptsContentProvide
r(scripts); | 28 var contentProvider = new WebInspector.ConcatenatedScriptsContentProvide
r(scripts); |
29 InspectorTest.addResult(url); | 29 InspectorTest.addResult(url); |
30 contentProvider.searchInContent(text, step4); | 30 contentProvider.searchInContent(text, false, false, step4); |
31 } | 31 } |
32 | 32 |
33 function step4(searchMatches) | 33 function step4(searchMatches) |
34 { | 34 { |
35 InspectorTest.dumpSearchMatches(searchMatches); | 35 InspectorTest.dumpSearchMatches(searchMatches); |
36 InspectorTest.completeDebuggerTest(); | 36 InspectorTest.completeDebuggerTest(); |
37 } | 37 } |
38 } | 38 } |
39 </script> | 39 </script> |
40 </head> | 40 </head> |
41 <body> | 41 <body> |
42 <p>Tests concatenated script search in inspector debugger agent.</p> | 42 <p>Tests concatenated script search in inspector debugger agent.</p> |
43 <a href="https://bugs.webkit.org/show_bug.cgi?id=69015">Bug 69015</a> | 43 <a href="https://bugs.webkit.org/show_bug.cgi?id=69015">Bug 69015</a> |
44 | 44 |
45 <iframe src="resources/search-concatenated.html" onload="runTest()"> | 45 <iframe src="resources/search-concatenated.html" onload="runTest()"> |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |