Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / local-image-from-local.html
blob7e613f7a09d4e600bf47036a67347c41b4a6249d
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var localImageLocation = "file:///tmp/LayoutTests/http/tests/security/resources/compass.jpg";
8 if (window.testRunner)
9 localImageLocation = testRunner.pathToLocalResource(localImageLocation);
11 var localImageElement = document.createElement("img");
12 localImageElement.setAttribute("id", "myImg");
13 localImageElement.setAttribute("src", localImageLocation);
14 localImageElement.setAttribute("onError", "imgError()");
15 localImageElement.setAttribute("onLoad", "imgLoad()");
17 function imgError() {
18 var result = document.getElementById("result");
19 result.innerHTML = "Test Failed: Image Load Error.";
22 function imgLoad() {
23 var result = document.getElementById("result");
24 result.innerHTML = "Test Passed. Local image loaded.";
26 </script>
27 </head>
28 <body onload="document.body.appendChild(localImageElement)">
29 <div id="div0">
30 This test is to see if a remote file can include a local image.
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 has not run.
39 </div>
40 </br>
41 </body>
42 </html>