2 <script src=
"../../../resources/js-test.js"></script>
3 <img id=
"our_image" src=
"resources/blue_rect.jpg">
5 var jsTestIsAsync
= true;
10 img
= document
.getElementById("our_image");
11 shouldNotBe('img.currentSrc.indexOf("blue_rect.jpg")', '-1');
12 img
.onload = function() {
13 shouldNotBe('img.currentSrc.indexOf("image-set-4x")', '-1');
16 img
.srcset
= "resources/image-set-4x.png 120w";
18 img
.onerror = function() {
19 testFailed('Image should have loaded');