4 window
.targetScaleFactor
= 2;
6 <script src=
"resources/srcset-helper.js"></script>
7 <script src=
"../../resources/js-test.js"></script>
9 addEventListener("load", function() {
10 shouldBe('document.getElementById("foo").clientWidth', '200');
11 shouldBe('document.getElementById("foo2").clientWidth', '400');
12 shouldBe('document.getElementById("foo3").clientWidth', '100');
13 shouldBe('document.getElementById("foo4").clientWidth', '200');
14 shouldBe('document.getElementById("foo5").clientWidth', '200');
21 This test passes if the images are all displayed with appropriate dimensions.
23 <img id=
"foo" srcset=
"resources/blue-100-px-square.png 1x, resources/deleteButton.png 3x, resources/green-400-px-square.png 2x">
25 <img id=
"foo2" src=
"resources/green-400-px-square.png">
27 <img id=
"foo3" srcset=
"resources/srcset.svg 2x">
29 <img id=
"foo4" srcset=
"resources/blue-100-px-square.png 0.5x">
31 <img id=
"foo5" src=
"resources/srcset.svg">