| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 window.targetScaleFactor = 1; | 4 window.targetScaleFactor = 1; |
| 5 </script> | 5 </script> |
| 6 <script src="resources/srcset-helper.js"></script> | 6 <script src="resources/srcset-helper.js"></script> |
| 7 <script src="../js/resources/js-test-pre.js"></script> | 7 <script src="../../resources/js-test.js"></script> |
| 8 <script> | 8 <script> |
| 9 addEventListener("load", function() { | 9 addEventListener("load", function() { |
| 10 shouldBeTrue('document.getElementById("foo").clientWidth==100'); | 10 shouldBeTrue('document.getElementById("foo").clientWidth==100'); |
| 11 }, false); | 11 }, false); |
| 12 </script> | 12 </script> |
| 13 </head> | 13 </head> |
| 14 | 14 |
| 15 <body id="body"> | 15 <body id="body"> |
| 16 <div>This test passes if the image below is a 100px blue square when the dev
iceScaleFactor is 1.</div> | 16 <div>This test passes if the image below is a 100px blue square when the dev
iceScaleFactor is 1.</div> |
| 17 <div> It tests that even though the 1x resource contains many invalid descri
ptors, only the invalid descriptors are ignored (according | 17 <div> It tests that even though the 1x resource contains many invalid descri
ptors, only the invalid descriptors are ignored (according |
| 18 to the spec) </div> | 18 to the spec) </div> |
| 19 <img id="foo" src="" srcset="resources/blue-100-px-square.png 43q 1x dfs 3dd
, resources/green-400-px-square.png 2x"> | 19 <img id="foo" src="" srcset="resources/blue-100-px-square.png 43q 1x dfs 3dd
, resources/green-400-px-square.png 2x"> |
| 20 </body> | 20 </body> |
| 21 </html> | 21 </html> |
| OLD | NEW |