| 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 src="../../inspector/debugger-test.js"></script> |
| 7 <script> | 8 <script> |
| 8 function onload() | 9 function onload() |
| 9 { | 10 { |
| 10 if (window.testRunner) | 11 if (window.testRunner) |
| 11 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
| 12 // Since this test could be run together with other inspector backend cache | 13 // Since this test could be run together with other inspector backend cache |
| 13 // tests, we need to reset size limits to default ones. | 14 // tests, we need to reset size limits to default ones. |
| 14 resetInspectorResourcesData(); | 15 resetInspectorResourcesData(); |
| 15 | 16 |
| 16 if (window.testRunner) | 17 if (window.testRunner) |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 runSearchAndDumpResults(searchConfig, step2); | 171 runSearchAndDumpResults(searchConfig, step2); |
| 171 | 172 |
| 172 function step2() | 173 function step2() |
| 173 { | 174 { |
| 174 InspectorTest.addResult("Running a file query with non-exist
ing project name now:"); | 175 InspectorTest.addResult("Running a file query with non-exist
ing project name now:"); |
| 175 query = "searchTest" + "Unique" + " file:128.0.0.1"; | 176 query = "searchTest" + "Unique" + " file:128.0.0.1"; |
| 176 searchConfig = new WebInspector.SearchConfig(query, true, fa
lse); | 177 searchConfig = new WebInspector.SearchConfig(query, true, fa
lse); |
| 177 runSearchAndDumpResults(searchConfig, next); | 178 runSearchAndDumpResults(searchConfig, next); |
| 178 } | 179 } |
| 179 }, | 180 }, |
| 181 |
| 182 function testDirtyFiles(next) |
| 183 { |
| 184 InspectorTest.showScriptSource("search.js", step2); |
| 185 |
| 186 function step2(sourceFrame) |
| 187 { |
| 188 sourceFrame.uiSourceCode().setWorkingCopy("FOO " + "searchTe
st" + "UniqueString" + " BAR"); |
| 189 var query = "searchTest" + "UniqueString"; |
| 190 var searchConfig = new WebInspector.SearchConfig(query, true
, false); |
| 191 runSearchAndDumpResults(searchConfig, next); |
| 192 } |
| 193 } |
| 180 ]); | 194 ]); |
| 181 } | 195 } |
| 182 } | 196 } |
| 183 | 197 |
| 184 </script> | 198 </script> |
| 185 </head> | 199 </head> |
| 186 <body onload="onload()"> | 200 <body onload="onload()"> |
| 187 <iframe src="../../inspector/search/resources/search.html"> | 201 <iframe src="../../inspector/search/resources/search.html"> |
| 188 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> | 202 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> |
| 189 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 203 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. |
| 190 </body> | 204 </body> |
| 191 </html> | 205 </html> |
| OLD | NEW |