| 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/extensions-test.js"></script> | 5 <script src="../../http/tests/inspector/extensions-test.js"></script> |
| 6 <script src="../../http/tests/inspector/debugger-test.js"></script> | 6 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
| 8 function loadFrame() | 8 function loadFrame() |
| 9 { | 9 { |
| 10 var callback; | 10 var callback; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 frames[0].logMessage(); | 21 frames[0].logMessage(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 function initialize_ExtensionResourceTests() | 24 function initialize_ExtensionResourceTests() |
| 25 { | 25 { |
| 26 | 26 |
| 27 InspectorTest.clickOnURL = function() | 27 InspectorTest.clickOnURL = function() |
| 28 { | 28 { |
| 29 UI.viewManager.showView("console").then(() => { | 29 UI.viewManager.showView("console").then(() => { |
| 30 Console.ConsoleView.instance()._updateMessageList(); | 30 Console.ConsoleView.instance()._updateMessageList(); |
| 31 var xpathResult = document.evaluate("//span[starts-with(., 'test-script.
js')]", | 31 var xpathResult = document.evaluate("//span[@class='devtools-link' and s
tarts-with(., 'test-script.js')]", |
| 32 Console.ConsoleView.instance().eleme
nt, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null); | 32 Console.ConsoleView.instance().eleme
nt, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null); |
| 33 | 33 |
| 34 var click = document.createEvent("MouseEvent"); | 34 var click = document.createEvent("MouseEvent"); |
| 35 click.initMouseEvent("click", true, true); | 35 click.initMouseEvent("click", true, true); |
| 36 xpathResult.singleNodeValue.dispatchEvent(click); | 36 xpathResult.singleNodeValue.dispatchEvent(click); |
| 37 }); | 37 }); |
| 38 } | 38 } |
| 39 | 39 |
| 40 InspectorTest.waitForStyleSheetChangedEvent = function(reply) | 40 InspectorTest.waitForStyleSheetChangedEvent = function(reply) |
| 41 { | 41 { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 script.src = "data:application/javascript," + escape("function test_func(){}
;"); | 206 script.src = "data:application/javascript," + escape("function test_func(){}
;"); |
| 207 document.head.appendChild(script); | 207 document.head.appendChild(script); |
| 208 } | 208 } |
| 209 | 209 |
| 210 </script> | 210 </script> |
| 211 </head> | 211 </head> |
| 212 <body onload="runTest()"> | 212 <body onload="runTest()"> |
| 213 <p>Tests resource-related methods of WebInspector extension API</p> | 213 <p>Tests resource-related methods of WebInspector extension API</p> |
| 214 </body> | 214 </body> |
| 215 </html> | 215 </html> |
| OLD | NEW |