blob: 963ac93918919f432c4c366789f2f38cb33d792c [file] [log] [blame]
<!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>