Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: LayoutTests/cssom/ahem-ex-units.html

Issue 1212753002: Convert tests (except fast/, imported/) using ahem font to ahem.js style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/css3/zoom-coords.xhtml ('k') | LayoutTests/editing/input/editable-container-with-word-wrap-normal.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698