1<?php
2
3class TestLineBoxTop extends GenericTest {
4  function testLineBoxTop1() {
5    $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
6                       array('top'=>0, 'bottom'=>0, 'left'=>0, 'right'=>0));
7    $tree = $this->runPipeline('
8<html>
9<head>
10body   { font-size: 10pt; line-height: 1; padding: 0; margin: 0; }
11</style>
12</head>
13<body>TEXT</body>
14</html>
15', $media);
16
17    $line_box = $tree->content[0]->getLineBox(0);
18
19    $this->assertEqual($tree->content[0]->get_top(),
20                       $line_box->top,
21                       "Comparing line box top and inline box top [%s]");
22  }
23
24}
25
26?>