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..507088244c5a799f3a3a223033779fdfbe44fb21 |
| --- /dev/null |
| +++ b/LayoutTests/loader/data-uri-images-load-when-loading-images-automatically-disabled.html |
| @@ -0,0 +1,26 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +data:uri images should load if loadsImagesAutomatically is disabled<br/> |
| +<script> |
| + if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
|
eseidel
2014/06/26 16:24:35
You shouldn't have to wait until done? onload won
mnaganov (inactive)
2014/06/26 16:42:40
Thanks for the tip! Indeed, this isn't needed.
|
| + testRunner.dumpAsText(); |
| + } |
| + if (window.internals) |
| + internals.settings.setLoadsImagesAutomatically(false); |
| + function imageLoaded() { |
| + document.write("PASS"); |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + } |
| + function timeout() { |
| + document.write("FAIL"); |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + } |
| + setTimeout(timeout, 15000); |
|
eseidel
2014/06/26 16:24:35
You souldn't need this. content_shell knows how t
mnaganov (inactive)
2014/06/26 16:42:40
Removed the timeout. I can't use onerror because l
|
| +</script> |
| +<img onload="imageLoaded()" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBzwciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII="> |
| +</body> |
| +</html> |