| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 function loadIFrame() | 5 function loadIFrame() |
| 6 { | 6 { |
| 7 var iframe = document.createElement("iframe"); | 7 var iframe = document.createElement("iframe"); |
| 8 iframe.src = "resources/fragment-frame.html#34"; | 8 iframe.src = "resources/fragment-frame.html#34"; |
| 9 iframe.onload = frameLoaded; | 9 iframe.onload = frameLoaded; |
| 10 document.body.appendChild(iframe); | 10 document.body.appendChild(iframe); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 var childFrame = WebInspector.resourceTreeModel.mainFrame.childFrames[0]
; | 32 var childFrame = WebInspector.resourceTreeModel.mainFrame.childFrames[0]
; |
| 33 InspectorTest.addResult("Child frame url: " + childFrame.url); | 33 InspectorTest.addResult("Child frame url: " + childFrame.url); |
| 34 var childFrameResource = childFrame.resources()[0]; | 34 var childFrameResource = childFrame.resources()[0]; |
| 35 InspectorTest.addResult("Child frame resource url: " + childFrameResourc
e.url); | 35 InspectorTest.addResult("Child frame resource url: " + childFrameResourc
e.url); |
| 36 | 36 |
| 37 function filterFrame(request) | 37 function filterFrame(request) |
| 38 { | 38 { |
| 39 return request.url.indexOf("fragment-frame.html") !== -1 | 39 return request.url.indexOf("fragment-frame.html") !== -1 |
| 40 } | 40 } |
| 41 | 41 |
| 42 var request = WebInspector.panels.network.requests.filter(filterFrame)[0
]; | 42 var request = WebInspector.inspectorView.panel("network").requests.filte
r(filterFrame)[0]; |
| 43 InspectorTest.addResult("Child frame request url: " + request.url); | 43 InspectorTest.addResult("Child frame request url: " + request.url); |
| 44 InspectorTest.completeTest(step2); | 44 InspectorTest.completeTest(step2); |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 </script> | 47 </script> |
| 48 </head> | 48 </head> |
| 49 <body onload="runTest()"> | 49 <body onload="runTest()"> |
| 50 <p>Tests fragment is stripped from url by resource and page agents.</p> | 50 <p>Tests fragment is stripped from url by resource and page agents.</p> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |