4 Test for crbug.com/
224317: data:uri images should reload synchronously.
<br/>
6 if (window
.testRunner
) {
7 testRunner
.waitUntilDone();
8 testRunner
.dumpAsText();
11 var image
= new Image();
12 image
.src
= "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII=";
14 if (image
.width
!= 100 || image
.height
!= 100) {
15 document
.write("FAIL");
17 if (location
.hash
== "#reloaded") {
18 document
.write("PASS");
19 if (window
.testRunner
)
20 testRunner
.notifyDone();
22 location
.hash
= "#reloaded";