2 <script src=
"../../../resources/js-test.js"></script>
3 <script src=
"resources/currentSrcHelper.js"></script>
6 testRunner
.dumpAsText();
8 addEventListener("DOMContentLoaded", function() {
9 window
.testdiv
= document
.createElement("div");
10 window
.testdiv
.innerHTML
= '<img id="foo" src="resources/blue-100-px-square.png" srcset="../../hidpi/resources/image-set-1x.png 200w, ../../hidpi/resources/image-set-2x.png 400w, resources/image-set-4x.png 800w">';
12 addEventListener("load", function() {
13 shouldBe('fileName(window.testdiv.children[0].currentSrc)', '"image-set-4x.png"');