OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description("This test measures the width of textareas and text inputs for diffe
rent fonts."); | 10 description("This test measures the width of textareas and text inputs for diffe
rent fonts."); |
11 | 11 |
12 var sizes = [1, 2, 3, 4, 5, 10, 20, 50, 100, 500, 1000]; | 12 var sizes = [1, 2, 3, 4, 5, 10, 20, 50, 100, 500, 1000]; |
13 // This list was grabbed from Wikipedia | 13 // This list was grabbed from Wikipedia |
14 // http://en.wikipedia.org/wiki/Core_fonts_for_the_Web | 14 // http://en.wikipedia.org/wiki/Core_fonts_for_the_Web |
(...skipping 20 matching lines...) Expand all Loading... |
35 for (var j = 0; j < fonts.length; j++) { | 35 for (var j = 0; j < fonts.length; j++) { |
36 debug('<b>' + fonts[j] + '</b>'); | 36 debug('<b>' + fonts[j] + '</b>'); |
37 printElementWidth('input', fonts[j]); | 37 printElementWidth('input', fonts[j]); |
38 debug('') | 38 debug('') |
39 printElementWidth('textarea', fonts[j]); | 39 printElementWidth('textarea', fonts[j]); |
40 debug(''); | 40 debug(''); |
41 } | 41 } |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |