Index: LayoutTests/fast/hidpi/image-srcset-data-srcset.html |
diff --git a/LayoutTests/fast/hidpi/image-srcset-data-srcset.html b/LayoutTests/fast/hidpi/image-srcset-data-srcset.html |
index 1e3ec2a530fc43d3d685c73063a38f936d76713f..2c7f9343256e005031db26aeeac3caf5f1e61a01 100644 |
--- a/LayoutTests/fast/hidpi/image-srcset-data-srcset.html |
+++ b/LayoutTests/fast/hidpi/image-srcset-data-srcset.html |
@@ -3,12 +3,13 @@ |
<script src="../../resources/js-test.js"></script> |
<script> |
addEventListener("load", function() { |
- shouldBeTrue('document.getElementById("foo").clientWidth==150'); |
+ shouldBeTrue('document.getElementById("foo").clientWidth==75'); |
}, false); |
</script> |
</head> |
<body id="body"> |
<div>This test passes if the image below looks like a 2x2 grid (yellow, gray, light green, dark green). In this case the srcset attribute has a base64 url, with the comma escaped.</div> |
+ <div>The image is displayed in a width of 75px, since the 2x resource gets picked (as the highest density resource current available.</div> |
<img id="foo" src="" |
srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5ErkJggg== 2x, |
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5ErkJggg== 1x"> |