Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / local-iFrame-source-from-local.html
blob27d0743eedd2d43a6d13f1c0d4681b4113420b21
1 <html>
2 <head>
3 <script>
4 function iFrameTest() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var localPageLocation = "file:///tmp/LayoutTests/http/tests/security/resources/localPage.html";
9 if (window.testRunner)
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;
21 if (myFrameDocument)
22 result.innerHTML = "Test Passed. Local page loaded locally into iFrame.";
23 else
24 result.innerHTML = "Test Failed: Local page not locally loaded into iFrame.";
26 </script>
27 </head>
28 <body onload="iFrameTest()">
29 <div id="div0">
30 This test is to see if a local file can include a local page in an iFrame.
31 <br/>
32 Currently this test cannot be run manually on Windows because we do not have
33 a function like pathToLocalResource() outside of DRT.
34 <br/>
35 </div>
36 </br>
37 <div id="result">
38 Test not run correctly.
39 </div>
40 </body>
41 </html>