| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../console-test.js"></script> | 4 <script src="../console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | |
| 7 function loadScript() | 6 function loadScript() |
| 8 { | 7 { |
| 9 var script = document.createElement('script'); | 8 var script = document.createElement('script'); |
| 10 script.type = "text/javascript"; | 9 script.type = "text/javascript"; |
| 11 script.src = "../resources/source2.js"; | 10 script.src = "../resources/source2.js"; |
| 12 document.body.appendChild(script); | 11 document.body.appendChild(script); |
| 13 } | 12 } |
| 14 | 13 |
| 15 function test() | 14 function test() |
| 16 { | 15 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 InspectorFrontendHost.openInNewTab = function() | 36 InspectorFrontendHost.openInNewTab = function() |
| 38 { | 37 { |
| 39 InspectorTest.addResult("Failure: Open link in new tab!!"); | 38 InspectorTest.addResult("Failure: Open link in new tab!!"); |
| 40 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedP
ane.Events.TabSelected, panelChanged); | 42 WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedP
ane.Events.TabSelected, panelChanged); |
| 44 | 43 |
| 45 function panelChanged() | 44 function panelChanged() |
| 46 { | 45 { |
| 47 InspectorTest.addResult("Panel " + WebInspector.inspectorView.currentPan
el().name + " was opened"); | 46 InspectorTest.addResult("Panel " + WebInspector.inspectorView._tabbedPan
e._currentTab.id + " was opened"); |
| 48 InspectorTest.completeTest(); | 47 InspectorTest.completeTest(); |
| 49 } | 48 } |
| 50 | 49 |
| 51 | 50 |
| 52 } | 51 } |
| 53 | 52 |
| 54 </script> | 53 </script> |
| 55 </head> | 54 </head> |
| 56 | 55 |
| 57 <body onload="runTest()"> | 56 <body onload="runTest()"> |
| 58 <p> | 57 <p> |
| 59 Tests a handling of a click on the link in a message, which had been shown befor
e its originating script was added. | 58 Tests a handling of a click on the link in a message, which had been shown befor
e its originating script was added. |
| 60 </p> | 59 </p> |
| 61 </body> | 60 </body> |
| 62 </html> | 61 </html> |
| OLD | NEW |