| 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 src="../../inspector/debugger-test.js"></script> |
| 8 <script src="./search-test.js"></script> | 8 <script src="./search-test.js"></script> |
| 9 <script> | 9 <script> |
| 10 function test() | 10 function test() |
| 11 { | 11 { |
| 12 UI.viewManager.showView("sources.search"); | 12 UI.viewManager.showView("sources.search"); |
| 13 var scope = new Sources.SourcesSearchScope(); | 13 var scope = new Sources.SourcesSearchScope(); |
| 14 Promise.all([ | 14 Promise.all([ |
| 15 InspectorTest.waitForUISourceCode("search.html"), | 15 InspectorTest.waitForUISourceCode("search.html"), |
| 16 InspectorTest.waitForUISourceCode("search.js"), | 16 InspectorTest.waitForUISourceCode("search.js"), |
| 17 InspectorTest.waitForUISourceCode("search.css"), | 17 InspectorTest.waitForUISourceCode("search.css"), |
| 18 ]).then(step2); | 18 ]).then(step2); |
| 19 | 19 |
| 20 function step2() | 20 function step2() |
| 21 { | 21 { |
| 22 InspectorTest.runTestSuite([ | 22 InspectorTest.runTestSuite([ |
| 23 function testIgnoreCase(next) | 23 function testIgnoreCaseAndIgnoreDynamicScript(next) |
| 24 { | 24 { |
| 25 var query = "searchTest" + "UniqueString"; | 25 var query = "searchTest" + "UniqueString"; |
| 26 var searchConfig = new Workspace.SearchConfig(query, true, false
); | 26 var searchConfig = new Workspace.SearchConfig(query, true, false
); |
| 27 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next)
; | 27 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next)
; |
| 28 }, | 28 }, |
| 29 | 29 |
| 30 function testIgnoreCase(next) |
| 31 { |
| 32 Common.settingForTest('searchInAnonymousAndContentScripts').set(
true); |
| 33 var query = "searchTest" + "UniqueString"; |
| 34 var searchConfig = new Workspace.SearchConfig(query, true, false
); |
| 35 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next)
; |
| 36 }, |
| 37 |
| 38 |
| 30 function testCaseSensitive(next) | 39 function testCaseSensitive(next) |
| 31 { | 40 { |
| 32 var query = "searchTest" + "UniqueString"; | 41 var query = "searchTest" + "UniqueString"; |
| 33 var searchConfig = new Workspace.SearchConfig(query, false, fals
e); | 42 var searchConfig = new Workspace.SearchConfig(query, false, fals
e); |
| 34 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next)
; | 43 InspectorTest.runSearchAndDumpResults(scope, searchConfig, next)
; |
| 35 }, | 44 }, |
| 36 | 45 |
| 37 function testFileHTML(next) | 46 function testFileHTML(next) |
| 38 { | 47 { |
| 39 var query = "searchTest" + "UniqueString" + " file:html"; | 48 var query = "searchTest" + "UniqueString" + " file:html"; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 153 } |
| 145 | 154 |
| 146 </script> | 155 </script> |
| 147 </head> | 156 </head> |
| 148 <body onload="runTest()"> | 157 <body onload="runTest()"> |
| 149 <iframe src="../../inspector/search/resources/search.html"> | 158 <iframe src="../../inspector/search/resources/search.html"> |
| 150 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> | 159 <p>Tests that ScriptSearchScope performs search across all sources correctly.</p
> |
| 151 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. | 160 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>. |
| 152 </body> | 161 </body> |
| 153 </html> | 162 </html> |
| OLD | NEW |