Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / mime / png-image-with-x-png-mime-type.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <iframe scrolling=no width=300 height=300></iframe>
5 <script>
6 if (window.testRunner) {
7     testRunner.waitUntilDone();
8     testRunner.dumpResourceResponseMIMETypes();
9     testRunner.dumpAsTextWithPixelResults();
10 }
11 function loadImage()
12 {
13     return "http://127.0.0.1:8000/resources/load-and-stall.php";
14 }
15
16 function xPngImage()
17 {
18     return "?name=../../../fast/images/resources/lenna.png&mimeType=" + encodeURIComponent("image/x-png");
19 }
20
21 function testDone()
22 {
23     window.testRunner && testRunner.notifyDone();
24 }
25
26 function runTests()
27 {
28     var _newLoc = loadImage() + xPngImage();
29     document.querySelector('iframe').src = _newLoc;
30     setTimeout(testDone, 500);
31 }
32
33 setTimeout(function(){runTests();},0);
34 </script>
35 </body>
36 </html>