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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ff0c9dcdccefbb17c3457a3cd4f758ccbb3d5cc5 |
--- /dev/null |
+++ b/LayoutTests/fast/hidpi/image-srcset-data-srcset.html |
@@ -0,0 +1,20 @@ |
+<html> |
+<head> |
+<script src="../js/resources/js-test-pre.js"></script> |
+<script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ } |
+ |
+ addEventListener("load", function() { |
+ shouldBeTrue('document.getElementById("foo").clientWidth==150'); |
+ }, 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> |
+ <img id="foo" src="" |
+ srcset="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5ErkJggg== 2x, |
+ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAIAAAAL5NQ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2woaBQc4oLEFpAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAACMSURBVHja7dNBEYAgFEVRPhHMYgAzUIsmVnFvB/fsoQb+ObfBmzMvxneW1D1vzz2wFiEUQiFEKIRCKIQIhVAIhRChEAqhECIUQiEUQoRCKIRCiFAIhVAIEep3xTWTLzzu5oVCKIRCiFAIhVAIEQqhEAohQiEUQiFEKIRCKIQIhVAIhRChEAqhECLUZi3VEwcBMGr1NgAAAABJRU5ErkJggg== 1x"> |
+</body> |
+</html> |