| 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="search-test.js"></script> | 5 <script src="search-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2); | 9 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2); |
| 10 var resource; | 10 var resource; |
| 11 | 11 |
| 12 function step2() | 12 function step2() |
| 13 { | 13 { |
| 14 resource = WebInspector.resourceForURL("http://127.0.0.1:8000/inspector/
search/resources/search.js"); | 14 resource = Bindings.resourceForURL("http://127.0.0.1:8000/inspector/sear
ch/resources/search.js"); |
| 15 InspectorTest.addResult(resource.url); | 15 InspectorTest.addResult(resource.url); |
| 16 | 16 |
| 17 // This file should not match search query. | 17 // This file should not match search query. |
| 18 var text = "searchTest" + "UniqueString"; | 18 var text = "searchTest" + "UniqueString"; |
| 19 resource.searchInContent(text, false, false, step3); | 19 resource.searchInContent(text, false, false, step3); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function step3(searchMatches) | 22 function step3(searchMatches) |
| 23 { | 23 { |
| 24 InspectorTest.dumpSearchMatches(searchMatches); | 24 InspectorTest.dumpSearchMatches(searchMatches); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 53 } | 53 } |
| 54 </script> | 54 </script> |
| 55 </head> | 55 </head> |
| 56 <body> | 56 <body> |
| 57 <p>Tests single resource search in inspector page agent.</p> | 57 <p>Tests single resource search in inspector page agent.</p> |
| 58 <a href="https://bugs.webkit.org/show_bug.cgi?id=68998">Bug 68998</a> | 58 <a href="https://bugs.webkit.org/show_bug.cgi?id=68998">Bug 68998</a> |
| 59 | 59 |
| 60 <iframe src="resources/search.html" onload="runTest()"> | 60 <iframe src="resources/search.html" onload="runTest()"> |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |