OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Change inspected iframe's "src" attribute.</title> | 3 <title>Change inspected iframe's "src" attribute.</title> |
4 <script src="../inspector-test.js"></script> | 4 <script src="../inspector-test.js"></script> |
5 <script src="../resources-test.js"></script> | 5 <script src="../resources-test.js"></script> |
6 <script> | 6 <script> |
7 function test() | 7 function test() |
8 { | 8 { |
9 InspectorTest.reloadPage(step1); | 9 InspectorTest.reloadPage(step1); |
10 | 10 |
11 function step1() | 11 function step1() |
12 { | 12 { |
13 WebInspector.showPanel("scripts"); | 13 WebInspector.showPanel("sources"); |
14 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js",
"search.css"], step2) | 14 InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js",
"search.css"], step2) |
15 } | 15 } |
16 | 16 |
17 | 17 |
18 function runSearchAndDumpResults(searchConfig, callback) | 18 function runSearchAndDumpResults(searchConfig, callback) |
19 { | 19 { |
20 var searchResults = []; | 20 var searchResults = []; |
21 var scope = new WebInspector.ScriptsSearchScope(WebInspector.workspace); | 21 var scope = new WebInspector.SourcesSearchScope(WebInspector.workspace); |
22 var progress = new WebInspector.Progress(); | 22 var progress = new WebInspector.Progress(); |
23 scope.performSearch(searchConfig, progress, searchResultCallback, search
FinishedCallback); | 23 scope.performSearch(searchConfig, progress, searchResultCallback, search
FinishedCallback); |
24 | 24 |
25 function searchResultCallback(searchResult) | 25 function searchResultCallback(searchResult) |
26 { | 26 { |
27 searchResults.push(searchResult); | 27 searchResults.push(searchResult); |
28 } | 28 } |
29 | 29 |
30 function searchFinishedCallback() | 30 function searchFinishedCallback() |
31 { | 31 { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 </script> | 86 </script> |
87 </head> | 87 </head> |
88 <body onload="runTest()"> | 88 <body onload="runTest()"> |
89 <iframe src="resources/search.html"> | 89 <iframe src="resources/search.html"> |
90 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> | 90 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> |
91 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 91 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. |
92 </body> | 92 </body> |
93 </html> | 93 </html> |
OLD | NEW |