| 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 src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function addErrorToConsole() | 8 function addErrorToConsole() |
| 9 { | 9 { |
| 10 console.error("test error message"); | 10 console.error("test error message"); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 function testShowResource(next) | 71 function testShowResource(next) |
| 72 { | 72 { |
| 73 WebInspector.inspectorView.showPanel("network"); | 73 WebInspector.inspectorView.showPanel("network"); |
| 74 | 74 |
| 75 InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "show",
didShowSourceFrame); | 75 InspectorTest.addSniffer(WebInspector.SourceFrame.prototype, "show",
didShowSourceFrame); |
| 76 | 76 |
| 77 WebInspector.resourceTreeModel.forAllResources(visit); | 77 WebInspector.resourceTreeModel.forAllResources(visit); |
| 78 function visit(resource) | 78 function visit(resource) |
| 79 { | 79 { |
| 80 if (resource.url.indexOf("debugger-test.js") !== -1) { | 80 if (resource.url.indexOf("debugger-test.js") !== -1) { |
| 81 WebInspector.panels.resources.showResource(resource, 1); | 81 WebInspector.inspectorView.panel("resources").showResource(r
esource, 1); |
| 82 return true; | 82 return true; |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 | 85 |
| 86 function didShowSourceFrame() | 86 function didShowSourceFrame() |
| 87 { | 87 { |
| 88 next(); | 88 next(); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 ]); | 91 ]); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 </script> | 94 </script> |
| 95 | 95 |
| 96 </head> | 96 </head> |
| 97 | 97 |
| 98 <body onload="runTest()"> | 98 <body onload="runTest()"> |
| 99 <p>Tests that it's possible to set breakpoint in source frame, and that | 99 <p>Tests that it's possible to set breakpoint in source frame, and that |
| 100 source frame displays breakpoints and console errors. | 100 source frame displays breakpoints and console errors. |
| 101 </p> | 101 </p> |
| 102 | 102 |
| 103 </body> | 103 </body> |
| 104 </html> | 104 </html> |
| OLD | NEW |