| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script src="../resources/ahem.js"></script> |
| 3 <style> | 4 <style> |
| 4 * { font-size: 16px; } | 5 * { font-size: 16px; } |
| 5 svg, rect, div { font-family: 'Ahem'; } | 6 svg, rect, div { font-family: 'Ahem'; } |
| 6 </style> | 7 </style> |
| 7 <html> | 8 <html> |
| 8 <svg id="svg" width="0" height="0"></svg> | 9 <svg id="svg" width="0" height="0"></svg> |
| 9 <script src="../resources/js-test.js"></script> | 10 <script src="../resources/js-test.js"></script> |
| 10 <script> | 11 <script> |
| 11 description("Test ex unit with Ahem font"); | 12 description("Test ex unit with Ahem font"); |
| 12 | 13 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 32 function testComputed(property, value, expected) { | 33 function testComputed(property, value, expected) { |
| 33 var tolerance = 0.05; | 34 var tolerance = 0.05; |
| 34 shouldBeCloseTo('parseFloat(computedStyleDiv("' + property + '", "' + value
+ '"))', expected, tolerance); | 35 shouldBeCloseTo('parseFloat(computedStyleDiv("' + property + '", "' + value
+ '"))', expected, tolerance); |
| 35 shouldBeCloseTo('parseFloat(computedStyleRect("' + property + '", "' + value
+ '"))', expected, tolerance); | 36 shouldBeCloseTo('parseFloat(computedStyleRect("' + property + '", "' + value
+ '"))', expected, tolerance); |
| 36 } | 37 } |
| 37 | 38 |
| 38 testComputed("word-spacing", "1ex", 12.8); | 39 testComputed("word-spacing", "1ex", 12.8); |
| 39 </script> | 40 </script> |
| 40 </body> | 41 </body> |
| 41 </html> | 42 </html> |
| OLD | NEW |