| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Test search in sources.</title> | 3 <title>Test search in sources.</title> |
| 4 <script src="../inspector-test.js"></script> | 4 <script src="../inspector-test.js"></script> |
| 5 <script src="../isolated-filesystem-test.js"></script> | 5 <script src="../isolated-filesystem-test.js"></script> |
| 6 <script src="../workspace-test.js"></script> | 6 <script src="../workspace-test.js"></script> |
| 7 <script src="../debugger-test.js"></script> | 7 <script src="../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() |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 function onAllResourcesLoaded() | 33 function onAllResourcesLoaded() |
| 34 { | 34 { |
| 35 for (var resourceName in resources) | 35 for (var resourceName in resources) |
| 36 fs.root.addFile(resourceName, resources[resourceName]); | 36 fs.root.addFile(resourceName, resources[resourceName]); |
| 37 fs.reportCreated(fileSystemCreated); | 37 fs.reportCreated(fileSystemCreated); |
| 38 } | 38 } |
| 39 | 39 |
| 40 function fileSystemCreated() | 40 function fileSystemCreated() |
| 41 { | 41 { |
| 42 WebInspector.inspectorView.showViewInDrawer("sources.search"); | 42 WebInspector.viewManager.showView("sources.search"); |
| 43 | 43 |
| 44 var uiSourceCodes = InspectorTest.fileSystemUISourceCodes(); | 44 var uiSourceCodes = InspectorTest.fileSystemUISourceCodes(); |
| 45 for (var i = 0; i < uiSourceCodes.length; ++i) { | 45 for (var i = 0; i < uiSourceCodes.length; ++i) { |
| 46 if (uiSourceCodes[i].name() === "search.js") { | 46 if (uiSourceCodes[i].name() === "search.js") { |
| 47 jsFileSystemUISourceCode = uiSourceCodes[i]; | 47 jsFileSystemUISourceCode = uiSourceCodes[i]; |
| 48 break; | 48 break; |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 addNetworkUISourceCode("http://localhost/search.html", resources["search
.html"]); | 52 addNetworkUISourceCode("http://localhost/search.html", resources["search
.html"]); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 ]; | 104 ]; |
| 105 } | 105 } |
| 106 | 106 |
| 107 </script> | 107 </script> |
| 108 </head> | 108 </head> |
| 109 <body onload="runTest()"> | 109 <body onload="runTest()"> |
| 110 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p> | 110 <p>Tests that ScriptSearchScope sorts network and dirty results correctly.</p> |
| 111 </body> | 111 </body> |
| 112 </html> | 112 </html> |
| OLD | NEW |