Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class TestFontSize extends GenericTest {
4
  function testFontSizeMM() {
5
    $tree = $this->runPipeline('
6
<html>
7
<head>
8
<style type="text/css">
9
body { font-size: 10mm; line-height: 1; }
10
</style>
11
</head>
12
<body>
13
TEXT
14
</body>
15
</html>
16
');
17
 
18
    $inline = $tree->get_first();
19
    $text = $inline->get_first();
20
    $this->assertEqual($text->words[0], "TEXT");
21
    $this->assertWithinMargin($text->get_full_height(), mm2pt(10), 0.01);
22
  }
23
}
24
 
25
?>