| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | 2 <script> |
| 5 window.targetScaleFactor = 2; | 3 window.targetScaleFactor = 2; |
| 6 </script> | 4 </script> |
| 7 <script src="resources/srcset-helper.js"></script> | 5 <script src="resources/srcset-helper.js"></script> |
| 8 <script src="../../resources/js-test.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
| 9 <script> | 7 <script> |
| 10 var imgWidth; | 8 var imgWidth; |
| 11 addEventListener("load", function() { | 9 addEventListener("load", function() { |
| 12 // FIXME: clientWidth might be zero because of crbug.com/379155 | |
| 13 imgWidth = document.getElementById("foo").clientWidth; | 10 imgWidth = document.getElementById("foo").clientWidth; |
| 14 shouldBe('imgWidth', '33554431' /* blink::intMaxForLayoutUnit */); | 11 shouldBe('imgWidth', '33554431' /* blink::intMaxForLayoutUnit */); |
| 15 }, false); | 12 }, false); |
| 16 </script> | 13 </script> |
| 17 </head> | 14 <div> |
| 18 | 15 This test passes if the image is displayed with infinite dimensions. |
| 19 <body id="body"> | 16 </div> |
| 20 <div> | 17 <img id="foo" srcset="resources/blue-100-px-square.png 0x"> |
| 21 This test passes if the image is displayed with infinite dimensions. | |
| 22 </div> | |
| 23 <img id="foo" srcset="resources/blue-100-px-square.png 0x"> | |
| 24 </body> | |
| 25 </html> | |
| OLD | NEW |