| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 InspectorTest.runTestSuite([ | 8 InspectorTest.runTestSuite([ |
| 9 function testInitialLoad(next) | 9 function testInitialLoad(next) |
| 10 { | 10 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 }, | 22 }, |
| 23 | 23 |
| 24 function testShowSourcesPanel(next) | 24 function testShowSourcesPanel(next) |
| 25 { | 25 { |
| 26 WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpL
oadedModules.bind(InspectorTest, next)); | 26 WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpL
oadedModules.bind(InspectorTest, next)); |
| 27 }, | 27 }, |
| 28 | 28 |
| 29 function testOpenUISourceCode(next) | 29 function testOpenUISourceCode(next) |
| 30 { | 30 { |
| 31 var resource; | 31 var resource; |
| 32 WebInspector.resourceTreeModel.forAllResources(function(r) { | 32 InspectorTest.resourceTreeModel.forAllResources(function(r) { |
| 33 if (r.url.indexOf("inspector-test.js") !== -1) { | 33 if (r.url.indexOf("inspector-test.js") !== -1) { |
| 34 resource = r; | 34 resource = r; |
| 35 return true; | 35 return true; |
| 36 } | 36 } |
| 37 }); | 37 }); |
| 38 var uiLocation = WebInspector.workspace.uiSourceCodeForOriginURL(res
ource.url).uiLocation(2, 1); | 38 var uiLocation = WebInspector.workspace.uiSourceCodeForOriginURL(res
ource.url).uiLocation(2, 1); |
| 39 WebInspector.Revealer.reveal(uiLocation); | 39 WebInspector.Revealer.reveal(uiLocation); |
| 40 InspectorTest.dumpLoadedModules(next); | 40 InspectorTest.dumpLoadedModules(next); |
| 41 } | 41 } |
| 42 ]); | 42 ]); |
| 43 } | 43 } |
| 44 | 44 |
| 45 </script> | 45 </script> |
| 46 </head> | 46 </head> |
| 47 | 47 |
| 48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
| 49 <p>This test validates initial set of loaded modules.</p> | 49 <p>This test validates initial set of loaded modules.</p> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |