5 testRunner
.dumpAsText();
7 var localPageLocation
= "file:///tmp/LayoutTests/http/tests/security/resources/localPage.html";
9 localPageLocation
= testRunner
.pathToLocalResource(localPageLocation
);
11 var localIframeElement
= document
.createElement("iFrame");
12 localIframeElement
.setAttribute("id", "myFrame");
13 localIframeElement
.setAttribute("src", localPageLocation
);
15 function iFrameTest() {
16 document
.body
.appendChild(localIframeElement
);
18 var result
= document
.getElementById("result");
19 var myFrameDocument
= document
.getElementById("myFrame").contentDocument
;
20 if (myFrameDocument
!== null)
21 result
.innerHTML
= "Test Failed: Local page remotely loaded into iFrame.";
23 result
.innerHTML
= "Test Passed. Local page not remotely loaded into iFrame.";
27 <body onload=
"iFrameTest()">
29 This test is to see if a remote file can include a local page in an iFrame.
31 Currently this test cannot be run manually on Windows because we do not have
32 a function like pathToLocalResource() outside of DRT.
37 Test not run correctly.