6 if (window
.testRunner
&& window
.location
.hash
!= '#start') {
7 // Setting ImagesAllowed is async. Reload to ensure it has been propagated to loaders.
8 testRunner
.dumpAsText();
9 testRunner
.setImagesAllowed(false);
10 window
.location
.hash
= '#start';
11 testRunner
.queueReload();
15 var image
= document
.getElementsByTagName('img')[0];
16 if (image
.naturalHeight
!= 0 || image
.naturalWidth
!= 0)
17 document
.write('FAIL: images should not be loaded when images are disabled');
19 document
.write('PASS');
23 <body onload=
"runTest()">
24 Test for crbug.com/
249013: data uri images should not load when images are disabled.
<br/>
26 <img src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAnklEQVR42u3QMQEAAAgDILV/51nBzwci0CmuRoEsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWd8Wil4Bx2r6t7cAAAAASUVORK5CYII=">