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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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=" + encodeUR IComponent("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>
OLDNEW
« 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