Index: LayoutTests/http/tests/mime/png-image-with-x-png-mime-type.html |
diff --git a/LayoutTests/http/tests/mime/png-image-with-x-png-mime-type.html b/LayoutTests/http/tests/mime/png-image-with-x-png-mime-type.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e3b75bf1acfe9d61cb74e73b5ee2526f3af38a63 |
--- /dev/null |
+++ b/LayoutTests/http/tests/mime/png-image-with-x-png-mime-type.html |
@@ -0,0 +1,36 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<iframe scrolling=no width=300 height=300></iframe> |
+<script> |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpResourceResponseMIMETypes(); |
+ testRunner.dumpAsTextWithPixelResults(); |
+} |
+function loadImage() |
+{ |
+ return "http://127.0.0.1:8000/resources/load-and-stall.php"; |
+} |
+ |
+function xPngImage() |
+{ |
+ return "?name=../../../fast/images/resources/lenna.png&mimeType=" + encodeURIComponent("image/x-png"); |
+} |
+ |
+function testDone() |
+{ |
+ window.testRunner && testRunner.notifyDone(); |
+} |
+ |
+function runTests() |
+{ |
+ var _newLoc = loadImage() + xPngImage(); |
+ document.querySelector('iframe').src = _newLoc; |
+ setTimeout(testDone, 500); |
+} |
+ |
+setTimeout(function(){runTests();},0); |
+</script> |
+</body> |
+</html> |