Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <body> | |
| 4 data:uri images should load if loadsImagesAutomatically is disabled<br/> | |
| 5 <script> | |
| 6 if (window.testRunner) { | |
| 7 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.
| |
| 8 testRunner.dumpAsText(); | |
| 9 } | |
| 10 if (window.internals) | |
| 11 internals.settings.setLoadsImagesAutomatically(false); | |
| 12 function imageLoaded() { | |
| 13 document.write("PASS"); | |
| 14 if (window.testRunner) | |
| 15 testRunner.notifyDone(); | |
| 16 } | |
| 17 function timeout() { | |
| 18 document.write("FAIL"); | |
| 19 if (window.testRunner) | |
| 20 testRunner.notifyDone(); | |
| 21 } | |
| 22 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
| |
| 23 </script> | |
| 24 <img onload="imageLoaded()" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA GQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnklEQVR42u3QMQEAAAgDoGlyo1vBz wciUJlw1ApkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsW bIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS 5YsWbIUyJIlS5YsWQpkyfq2MosBSIeKONMAAAAASUVORK5CYII="> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |