Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / loader / data-uri-images-load-when-loading-images-automatically-disabled.html
blob9cce280a98e1969b788ade4d31eb85a844055a68
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>data:uri images should load if loadsImagesAutomatically is disabled</title>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 if (window.internals)
9 internals.settings.setLoadsImagesAutomatically(false);
11 function runTest() {
12 var image = document.getElementsByTagName('img')[0];
13 if (image.naturalHeight != 0 || image.naturalWidth != 0)
14 document.write('PASS');
15 else
16 document.write('FAIL: data:uri images should loaded regardless of loadsImagesAutomatically');
18 </script>
19 </head>
20 <body onload="runTest()">
21 This test verifies that data: uri images are loaded regardless of loadsImagesAutomatically setting value.
22 On success, the image must be loaded, and &quot;PASS&quot; message printed.
23 FAIL
24 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII=">
25 </body>
26 </html>