| 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 20 matching lines...) Expand all Loading... |
| 31 for (var i = 0; i < items.length; ++i) { | 31 for (var i = 0; i < items.length; ++i) { |
| 32 var item = items[i]; | 32 var item = items[i]; |
| 33 if (item instanceof HTMLContentElement) | 33 if (item instanceof HTMLContentElement) |
| 34 continue; | 34 continue; |
| 35 if (!(item instanceof HTMLButtonElement)) { | 35 if (!(item instanceof HTMLButtonElement)) { |
| 36 InspectorTest.addResult("status bar item " + i + " is not a butt
on: " + item); | 36 InspectorTest.addResult("status bar item " + i + " is not a butt
on: " + item); |
| 37 continue; | 37 continue; |
| 38 } | 38 } |
| 39 // Strip url(...) and prefix of the URL within, leave just last 3 co
mponents. | 39 // Strip url(...) and prefix of the URL within, leave just last 3 co
mponents. |
| 40 var url = item.style.backgroundImage.replace(/^url\(.*(([/][^/]*){3}
[^/)]*)\)$/, "...$1"); | 40 var url = item.style.backgroundImage.replace(/^url\(.*(([/][^/]*){3}
[^/)]*)\)$/, "...$1"); |
| 41 InspectorTest.addResult("status bar item " + i + ", icon: " + url +
", tooltip: '" + item[WebInspector.Tooltip._symbol].content + "', disabled: " +
item.disabled); | 41 InspectorTest.addResult("status bar item " + i + ", icon: \"" + url
+ ", tooltip: '" + item[WebInspector.Tooltip._symbol].content + "', disabled: "
+ item.disabled); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 InspectorTest.clickButton = function(index) | 45 InspectorTest.clickButton = function(index) |
| 46 { | 46 { |
| 47 var panel = WebInspector.inspectorView.currentPanel(); | 47 var panel = WebInspector.inspectorView.currentPanel(); |
| 48 panel._panelToolbar._contentElement.children[index].click(); | 48 panel._panelToolbar._contentElement.children[index].click(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 InspectorTest.logMessageAndClickOnURL = function() | 51 InspectorTest.logMessageAndClickOnURL = function() |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 var img = document.createElement("img"); | 329 var img = document.createElement("img"); |
| 330 img.src = "resources/abe.png"; | 330 img.src = "resources/abe.png"; |
| 331 document.body.appendChild(img); | 331 document.body.appendChild(img); |
| 332 } | 332 } |
| 333 </script> | 333 </script> |
| 334 </head> | 334 </head> |
| 335 <body onload="runTest()"> | 335 <body onload="runTest()"> |
| 336 <p>Tests WebInspector extension API</p> | 336 <p>Tests WebInspector extension API</p> |
| 337 </body> | 337 </body> |
| 338 </html> | 338 </html> |
| OLD | NEW |