| <!doctype html> |
| <html> |
| <head> |
| <script src="../../http/tests/inspector/resources/inspector-test.js"></script> |
| <script> |
| function test() |
| { |
| WI.Frame.addEventListener(WI.Frame.Event.MainResourceDidChange, function(event) { |
| var url = WI.frameResourceManager.mainFrame.url; |
| InspectorTest.log("Main frame: " + url.substring(url.lastIndexOf("/") + 1)); |
| InspectorTest.completeTest(); |
| }); |
| |
| InspectorTest.reloadPage(); |
| } |
| </script> |
| </head> |
| <body onload="runTest()"> |
| <p>Testing that the inspector scripts are loaded and the main frame URL can be received.</p> |
| </body> |
| </html> |