| 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/inspector-test.js"></script> | 4 <script src="../../inspector/inspector-test.js"></script> | 
| 5 <script src="../../inspector/resources-test.js"></script> | 5 <script src="../../inspector/resources-test.js"></script> | 
| 6 <script src="../../inspector/network-test.js"></script> | 6 <script src="../../inspector/network-test.js"></script> | 
| 7 <script> | 7 <script> | 
| 8 function onload() | 8 function onload() | 
| 9 { | 9 { | 
| 10     if (window.testRunner) { | 10     if (window.testRunner) | 
| 11         testRunner.waitUntilDone(); | 11         testRunner.waitUntilDone(); | 
|  | 12     // Since this test could be run together with other inspector backend cache | 
|  | 13     // tests, we need to reset size limits to default ones. | 
|  | 14     resetInspectorResourcesData(); | 
|  | 15 | 
|  | 16     if (window.testRunner) | 
| 12         testRunner.showWebInspector(); | 17         testRunner.showWebInspector(); | 
| 13     } |  | 
| 14 |  | 
| 15     runTest(); | 18     runTest(); | 
| 16 } | 19 } | 
| 17 | 20 | 
| 18 function test() | 21 function test() | 
| 19 { | 22 { | 
| 20     InspectorTest.resetInspectorResourcesData(start); | 23     WebInspector.inspectorView.showPanel("sources"); | 
| 21 | 24     WebInspector.inspectorView.showViewInDrawer("search"); | 
| 22     function start() | 25     InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", "sea
     rch.css"], step2) | 
| 23     { |  | 
| 24         InspectorTest.reloadPage(step1); |  | 
| 25     } |  | 
| 26 |  | 
| 27     function step1() |  | 
| 28     { |  | 
| 29         WebInspector.inspectorView.showPanel("sources"); |  | 
| 30         WebInspector.inspectorView.showViewInDrawer("search"); |  | 
| 31         InspectorTest.runAfterResourcesAreFinished(["search.html", "search.js", 
     "search.css"], step2) |  | 
| 32     } |  | 
| 33 | 26 | 
| 34     function runSearchAndDumpResults(searchConfig, callback) | 27     function runSearchAndDumpResults(searchConfig, callback) | 
| 35     { | 28     { | 
| 36         var scope = new WebInspector.SourcesSearchScope(); | 29         var scope = new WebInspector.SourcesSearchScope(); | 
| 37         var searchResults = []; | 30         var searchResults = []; | 
| 38         var progress = new WebInspector.Progress(); | 31         var progress = new WebInspector.Progress(); | 
| 39         scope.performSearch(searchConfig, progress, searchResultCallback, search
     FinishedCallback); | 32         scope.performSearch(searchConfig, progress, searchResultCallback, search
     FinishedCallback); | 
| 40 | 33 | 
| 41         function searchResultCallback(searchResult) | 34         function searchResultCallback(searchResult) | 
| 42         { | 35         { | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 167 } | 160 } | 
| 168 | 161 | 
| 169 </script> | 162 </script> | 
| 170 </head> | 163 </head> | 
| 171 <body onload="onload()"> | 164 <body onload="onload()"> | 
| 172 <iframe src="../../inspector/search/resources/search.html"> | 165 <iframe src="../../inspector/search/resources/search.html"> | 
| 173 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
     > | 166 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
     > | 
| 174 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 167 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 
| 175 </body> | 168 </body> | 
| 176 </html> | 169 </html> | 
| OLD | NEW | 
|---|