Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: LayoutTests/http/tests/mime/png-image-with-x-png-mime-type.html

Issue 270473002: LayoutTest Case for png images served with "image/x-png" mime type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/platform/linux/http/tests/mime/png-image-with-x-png-mime-type-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698