OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta name="viewport" content="width=320"> |
| 5 <style> |
| 6 html { font-size: 16px; } |
| 7 body { width: 320px; margin: 0; overflow-y: hidden; } |
| 8 </style> |
| 9 <script src="resources/autosizingTest.js"></script> |
| 10 </head> |
| 11 <body> |
| 12 <div> |
| 13 This test verifies that the page updates correctly after a dynamic change to the
font scale factor. |
| 14 |
| 15 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur sapien sapien
, tempus id egestas a, consectetur et felis. Ut pharetra mi eget lectus laoreet
rutrum. Mauris tellus odio, egestas vitae sodales in, vehicula eget ante. Pellen
tesque id egestas arcu. Quisque tellus quam, rhoncus ac elementum vel, volutpat
vel felis. Aliquam ut leo dolor, eget egestas tellus. Nunc ut velit gravida nisl
fringilla rutrum eget at arcu. Vivamus et pretium mauris. |
| 16 </div> |
| 17 <script> |
| 18 if (window.testRunner) |
| 19 testRunner.waitUntilDone(); |
| 20 |
| 21 setTimeout(function() { |
| 22 setFontScaleFactor(2); |
| 23 |
| 24 if (window.testRunner) |
| 25 testRunner.notifyDone(); |
| 26 }, 0); |
| 27 |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |