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/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
5 <script src="../../http/tests/inspector/network-test.js"></script> | 5 <script src="../../http/tests/inspector/network-test.js"></script> |
6 <script src="../../http/tests/inspector/sources-test.js"></script> | 6 <script src="../../http/tests/inspector/sources-test.js"></script> |
7 <script src="../../http/tests/inspector/resources-test.js"></script> | 7 <script src="../../http/tests/inspector/resources-test.js"></script> |
8 <script src="../../http/tests/inspector/extensions-test.js"></script> | 8 <script src="../../http/tests/inspector/extensions-test.js"></script> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 function logMessage() | 10 function logMessage() |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 function showUILocationHook(uiLocation) | 98 function showUILocationHook(uiLocation) |
99 { | 99 { |
100 showURL("sources", uiLocation.uiSourceCode.url(), uiLocation.lineNum
ber); | 100 showURL("sources", uiLocation.uiSourceCode.url(), uiLocation.lineNum
ber); |
101 } | 101 } |
102 | 102 |
103 function showResourceHook(resource, lineNumber) | 103 function showResourceHook(resource, lineNumber) |
104 { | 104 { |
105 showURL("resources", resource.url, lineNumber); | 105 showURL("resources", resource.url, lineNumber); |
106 } | 106 } |
107 | 107 |
| 108 /** |
| 109 * @param {!SDK.NetworkRequest} request |
| 110 */ |
108 function showRequestHook(request) | 111 function showRequestHook(request) |
109 { | 112 { |
110 showURL("network", request.url); | 113 showURL("network", request.url()); |
111 } | 114 } |
112 } | 115 } |
113 | 116 |
114 InspectorTest.switchToLastPanel = function() | 117 InspectorTest.switchToLastPanel = function() |
115 { | 118 { |
116 var lastPanelName = UI.inspectorView._tabbedPane._tabs.peekLast().id; | 119 var lastPanelName = UI.inspectorView._tabbedPane._tabs.peekLast().id; |
117 return UI.inspectorView.showPanel(lastPanelName); | 120 return UI.inspectorView.showPanel(lastPanelName); |
118 } | 121 } |
119 } | 122 } |
120 | 123 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 var img = document.createElement("img"); | 341 var img = document.createElement("img"); |
339 img.src = "resources/abe.png"; | 342 img.src = "resources/abe.png"; |
340 document.body.appendChild(img); | 343 document.body.appendChild(img); |
341 } | 344 } |
342 </script> | 345 </script> |
343 </head> | 346 </head> |
344 <body onload="runTest()"> | 347 <body onload="runTest()"> |
345 <p>Tests WebInspector extension API</p> | 348 <p>Tests WebInspector extension API</p> |
346 </body> | 349 </body> |
347 </html> | 350 </html> |
OLD | NEW |