fc113790b2f36b07ece7b62fe3ed2d8d749d16d8
[WebKit-https.git] / LayoutTests / inspector-protocol / model / main-frame-resource.html
1 <!doctype html>
2 <html>
3 <head>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/resources/protocol-test.js"></script>
5 <script>
6 function test()
7 {
8     InspectorTest.importInspectorScripts();
9
10     WebInspector.frameResourceManager.addEventListener(WebInspector.FrameResourceManager.Event.MainFrameDidChange, function(event) {
11         var url = WebInspector.frameResourceManager.mainFrame.url;
12         InspectorTest.log("Main frame: " + url.substring(url.lastIndexOf("/") + 1));
13         InspectorTest.completeTest();
14     });
15 }
16 </script>
17 </head>
18 <body onload="runTest()">
19     <p>Testing that the inspector scripts are loaded and the main frame URL can be received.</p>
20 </body>
21 </html>