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/extensions-test.js"></script> | 4 <script src="../../http/tests/inspector/extensions-test.js"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 | 6 |
7 function initialize_extensionsSidebarTest() | 7 function initialize_extensionsSidebarTest() |
8 { | 8 { |
9 InspectorTest.dumpSidebarContent = function(panelName, callback) | 9 InspectorTest.dumpSidebarContent = function(panelName, callback) |
10 { | 10 { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 f10: function() {}, | 149 f10: function() {}, |
150 f11: $0.testProperty | 150 f11: $0.testProperty |
151 }; | 151 }; |
152 } | 152 } |
153 // Do an extra round-trip to the inspected page to assure inspect()'s ro
und-trip to | 153 // Do an extra round-trip to the inspected page to assure inspect()'s ro
und-trip to |
154 // front-end is complete and $0 is properly updated with currently inspe
cted node. | 154 // front-end is complete and $0 is properly updated with currently inspe
cted node. |
155 webInspector.inspectedWindow.eval("", function() { | 155 webInspector.inspectedWindow.eval("", function() { |
156 sidebar.setExpression("(" + expression.toString() + ")();", "title",
extension_dumpSidebarContent.bind(this, panelName, nextTest)); | 156 sidebar.setExpression("(" + expression.toString() + ")();", "title",
extension_dumpSidebarContent.bind(this, panelName, nextTest)); |
157 }); | 157 }); |
158 } | 158 } |
159 // The response to this eval gives Inspector protocol error: Object has too
long reference chain(must not be longer than 1000) | |
160 webInspector.inspectedWindow.eval("inspect(document.body)", function() { | 159 webInspector.inspectedWindow.eval("inspect(document.body)", function() { |
161 webInspector.panels.elements.createSidebarPane("Watch Test: Expression",
onSidebarCreated); | 160 webInspector.panels.elements.createSidebarPane("Watch Test: Expression",
onSidebarCreated); |
162 }); | 161 }); |
163 } | 162 } |
164 | 163 |
165 function extension_testSourcesSidebarSetExpression(nextTest) | 164 function extension_testSourcesSidebarSetExpression(nextTest) |
166 { | 165 { |
167 var panelName = "sources"; | 166 var panelName = "sources"; |
168 | 167 |
169 function onSidebarExpanded(sidebar) { | 168 function onSidebarExpanded(sidebar) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 } | 229 } |
231 webInspector.panels[panelName].createSidebarPane("Sidebar Test: replace pag
e with object", onSidebarCreated); | 230 webInspector.panels[panelName].createSidebarPane("Sidebar Test: replace pag
e with object", onSidebarCreated); |
232 } | 231 } |
233 | 232 |
234 </script> | 233 </script> |
235 </head> | 234 </head> |
236 <body onload="runTest()"> | 235 <body onload="runTest()"> |
237 <p>Tests sidebars in WebInspector extensions API</p> | 236 <p>Tests sidebars in WebInspector extensions API</p> |
238 </body> | 237 </body> |
239 </html> | 238 </html> |
OLD | NEW |