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 src="../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../http/tests/inspector/debugger-test.js"></script> |
6 <script src="../sources/debugger/resources/edit-me.js"></script> | 6 <script src="../sources/debugger/resources/edit-me.js"></script> |
7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
8 | 8 |
9 function initialize_extensionsSidebarTest() | 9 function initialize_extensionsSidebarTest() |
10 { | 10 { |
11 InspectorTest.expandSidebar = function(callback) | 11 InspectorTest.expandSidebar = function(callback) |
12 { | 12 { |
13 var sidebar = InspectorTest._extensionSidebar(); | 13 var sidebar = InspectorTest._extensionSidebar(); |
14 InspectorTest.deprecatedRunAfterPendingDispatches(function() { | 14 InspectorTest.deprecatedRunAfterPendingDispatches(function() { |
15 sidebar.expand(); | 15 sidebar.expandPane(); |
16 callback(); | 16 callback(); |
17 }); | 17 }); |
18 } | 18 } |
19 | 19 |
20 InspectorTest._extensionSidebar = function() | 20 InspectorTest._extensionSidebar = function() |
21 { | 21 { |
22 return WebInspector.extensionServer.sidebarPanes()[0]; | 22 return WebInspector.extensionServer.sidebarPanes()[0]; |
23 } | 23 } |
24 } | 24 } |
25 | 25 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 webInspector.panels.elements.createSidebarPane("Test Sidebar", onSidebarCrea
ted); | 139 webInspector.panels.elements.createSidebarPane("Test Sidebar", onSidebarCrea
ted); |
140 } | 140 } |
141 | 141 |
142 </script> | 142 </script> |
143 </head> | 143 </head> |
144 <body onload="runTest()"> | 144 <body onload="runTest()"> |
145 <p>Tests WebInspector extension API</p> | 145 <p>Tests WebInspector extension API</p> |
146 </body> | 146 </body> |
147 </html> | 147 </html> |
OLD | NEW |