| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 InspectorTest.addResult("No button with index " + index); | 58 InspectorTest.addResult("No button with index " + index); |
| 59 items[index].click(); | 59 items[index].click(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 InspectorTest.logMessageAndClickOnURL = function() | 62 InspectorTest.logMessageAndClickOnURL = function() |
| 63 { | 63 { |
| 64 InspectorTest.disableConsoleViewport(); | 64 InspectorTest.disableConsoleViewport(); |
| 65 InspectorTest.evaluateInPage("logMessage()"); | 65 InspectorTest.evaluateInPage("logMessage()"); |
| 66 var wrappedConsoleMessageAdded = InspectorTest.safeWrap(consoleMessageAd
ded); | 66 var wrappedConsoleMessageAdded = InspectorTest.safeWrap(consoleMessageAd
ded); |
| 67 SDK.consoleModel.addEventListener(SDK.ConsoleModel.Events.MessageAdded,
wrappedConsoleMessageAdded); | 67 ConsoleModel.consoleModel.addEventListener(ConsoleModel.ConsoleModel.Eve
nts.MessageAdded, wrappedConsoleMessageAdded); |
| 68 | 68 |
| 69 function consoleMessageAdded() | 69 function consoleMessageAdded() |
| 70 { | 70 { |
| 71 SDK.consoleModel.removeEventListener(SDK.ConsoleModel.Events.Message
Added, wrappedConsoleMessageAdded); | 71 ConsoleModel.consoleModel.removeEventListener(ConsoleModel.ConsoleMo
del.Events.MessageAdded, wrappedConsoleMessageAdded); |
| 72 Console.ConsoleView.instance()._viewportThrottler.flush(); | 72 Console.ConsoleView.instance()._viewportThrottler.flush(); |
| 73 InspectorTest.deprecatedRunAfterPendingDispatches(clickOnMessage) | 73 InspectorTest.deprecatedRunAfterPendingDispatches(clickOnMessage) |
| 74 } | 74 } |
| 75 | 75 |
| 76 function clickOnMessage() | 76 function clickOnMessage() |
| 77 { | 77 { |
| 78 var xpathResult = document.evaluate("//span[@class='devtools-link' a
nd starts-with(., 'extensions-panel.html')]", Console.ConsoleView.instance()._vi
ewport.element, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null); | 78 var xpathResult = document.evaluate("//span[@class='devtools-link' a
nd starts-with(., 'extensions-panel.html')]", Console.ConsoleView.instance()._vi
ewport.element, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null); |
| 79 | 79 |
| 80 var click = document.createEvent("MouseEvent"); | 80 var click = document.createEvent("MouseEvent"); |
| 81 click.initMouseEvent("click", true, true); | 81 click.initMouseEvent("click", true, true); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 var img = document.createElement("img"); | 341 var img = document.createElement("img"); |
| 342 img.src = "resources/abe.png"; | 342 img.src = "resources/abe.png"; |
| 343 document.body.appendChild(img); | 343 document.body.appendChild(img); |
| 344 } | 344 } |
| 345 </script> | 345 </script> |
| 346 </head> | 346 </head> |
| 347 <body onload="runTest()"> | 347 <body onload="runTest()"> |
| 348 <p>Tests WebInspector extension API</p> | 348 <p>Tests WebInspector extension API</p> |
| 349 </body> | 349 </body> |
| 350 </html> | 350 </html> |
| OLD | NEW |