Chromium Code Reviews| Index: LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html |
| diff --git a/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html b/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e3b5179132fa93e84abb7def556addf73c1c5ab1 |
| --- /dev/null |
| +++ b/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +data:uri images should load if loadsImagesAutomatically is disabled<br/> |
| +<script> |
| + if (window.testRunner) { |
|
Nate Chapin
2014/07/01 19:12:43
Nit: No {}
mnaganov (inactive)
2014/07/02 08:39:28
Done.
|
| + testRunner.dumpAsText(); |
| + } |
| + if (window.internals) |
| + internals.settings.setLoadsImagesAutomatically(false); |
| +</script> |
| + This test verifies that data: uri images are loaded regardless of loadsImagesAutomatically setting value. |
| + On success, the image must be loaded, and "PASS" message printed. |
| + FAIL |
| + <img onload="document.write('PASS')" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII="> |
| +</body> |
| +</html> |