| var localPageLocation = "file:///tmp/LayoutTests/http/tests/security/resources/localPage.html"; |
| localPageLocation = testRunner.pathToLocalResource(localPageLocation); |
| var localIframeElement = document.createElement("iFrame"); |
| localIframeElement.setAttribute("id", "myFrame"); |
| localIframeElement.setAttribute("src", localPageLocation); |
| document.body.appendChild(localIframeElement); |
| var result = document.getElementById("result"); |
| var myFrameDocument = document.getElementById("myFrame").contentDocument; |
| result.innerHTML = "Test Passed. Local page loaded locally into iFrame."; |
| result.innerHTML = "Test Failed: Local page not locally loaded into iFrame."; |
| <body onload="iFrameTest()"> |
| This test is to see if a local file can include a local page in an iFrame. |
| Currently this test cannot be run manually on Windows because we do not have |
| a function like pathToLocalResource() outside of DRT. |