2 <script src=
"../../../resources/testharness.js"></script>
3 <script src=
"../../../resources/testharnessreport.js"></script>
6 var t
= async_test("duplicate density candidate elimination");
7 var img
= document
.body
.appendChild(new Image());
8 img
.onload
= t
.step_func(function() {
9 var dynamicImageSrc
= document
.getElementById("dynimg").currentSrc
;
10 var isBlue
= (dynamicImageSrc
.indexOf("blue_rect.jpg") != -1);
11 var is4x
= (dynamicImageSrc
.indexOf("image-set-4x.png") != -1);
17 img
.srcset
= "resources/image-set-4x.png 1x, resources/blue_rect.jpg 1x";
20 <img src=
"resources/blue_rect.jpg" onload=
"runTest()">