4 function iFrameTest() {
6 testRunner
.dumpAsText();
8 var localPageLocation
= "file:///tmp/LayoutTests/http/tests/security/resources/localPage.html";
10 localPageLocation
= testRunner
.pathToLocalResource(localPageLocation
);
12 var localIframeElement
= document
.createElement("iFrame");
13 localIframeElement
.setAttribute("id", "myFrame");
14 localIframeElement
.setAttribute("src", localPageLocation
);
16 document
.body
.appendChild(localIframeElement
);
18 var result
= document
.getElementById("result");
20 var myFrameDocument
= document
.getElementById("myFrame").contentDocument
;
22 result
.innerHTML
= "Test Passed. Local page loaded locally into iFrame.";
24 result
.innerHTML
= "Test Failed: Local page not locally loaded into iFrame.";
28 <body onload=
"iFrameTest()">
30 This test is to see if a local file can include a local page in an iFrame.
32 Currently this test cannot be run manually on Windows because we do not have
33 a function like pathToLocalResource() outside of DRT.
38 Test not run correctly.