Index: LayoutTests/loader/data-uri-images-load-synchronously.html |
diff --git a/LayoutTests/loader/data-uri-images-load-synchronously.html b/LayoutTests/loader/data-uri-images-load-synchronously.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7746f5b50e80b950246db259324f5f8fd4fadcbd |
--- /dev/null |
+++ b/LayoutTests/loader/data-uri-images-load-synchronously.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+Test for crbug.com/224317: data:uri images should load synchronously.<br/> |
+<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+ var image = new Image(); |
+ image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII="; |
+ |
+ if (image.width == 100 && image.height == 100) |
+ document.write("PASS"); |
+ else |
+ document.write("FAIL"); |
+</script> |
+</body> |
+</html> |