| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| img { |
| width: 200px; |
| height: 200px; |
| background-color: red; |
| } |
| </style> |
| </head> |
| <body> |
| <img src="resources/image-with-nested-data-uri-images.svg"> |
| <script> |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| // window load event fires when the the page and its resources are loaded. |
| // However it does not wait till the sub-resources are loaded. And this is |
| // why we need to wait a little bit before we call notifyDone(). |
| window.addEventListener("load", function() { |
| setTimeout(function () { |
| testRunner.notifyDone(); |
| }, 200); |
| }); |
| } |
| </script> |
| </body> |
| </html> |