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

Side by Side Diff: LayoutTests/fast/hidpi/image-srcset-data-src.html

Issue 25105004: Use srcset's resource pixel density to determine intrinsic size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleantests
Patch Set: Fixed expected test results Created 7 years, 2 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 }
8
9 addEventListener("load", function() { 5 addEventListener("load", function() {
10 shouldBeTrue('document.getElementById("foo").clientWidth==150'); 6 shouldBeTrue('document.getElementById("foo").clientWidth==150');
11 }, false); 7 }, false);
12 </script> 8 </script>
13 </head> 9 </head>
14 10
15 <body id="body"> 11 <body id="body">
16 <div>This test passes if the image below looks like a 2x2 grid (yellow, gray , light green, dark green).</div> 12 <div>This test passes if the image below looks like a 2x2 grid (yellow, gray , light green, dark green).</div>
17 <img id="foo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAI AAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWV udABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb +ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTW TLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAAB JRU5ErkJggg=="> 13 <img id="foo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAI AAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWV udABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb +ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTW TLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAAB JRU5ErkJggg==">
18 </body> 14 </body>
19 </html> 15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698