2 if (window
.testRunner
) {
3 testRunner
.dumpAsText();
4 testRunner
.waitUntilDone();
8 var image
= document
.body
.getElementsByTagName('img')[0];
9 alert(image
.width
> 0 ? 'PASS' : 'FAIL');
10 if (window
.testRunner
)
11 testRunner
.notifyDone();
14 This image should load:
<br>
15 <img crossorigin=
"anonymous" src=
"resources/abe.png" onload=
"loaded()">