100, 'height' => 200/mm2pt(1)), array('top'=>0, 'bottom'=>0, 'left'=>0, 'right'=>0)); $tree = $this->runPipeline(' body { font-size: 10pt; line-height: 1; padding: 0; margin: 0; }
LINE1 LINE2 LINE3 LINE4 LINE5
', $media); $locations = PageBreakLocator::_getBreakLocations($tree); $this->assertEqual(count($locations), 6); } function testPagebreakWithBR() { $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), array('top'=>0, 'bottom'=>0, 'left'=>0, 'right'=>0)); $tree = $this->runPipeline(' body { font-size: 10pt; line-height: 1; padding: 0; margin: 0; }
LINE1
LINE2
LINE3
LINE4
LINE5
', $media); $locations = PageBreakLocator::_getBreakLocations($tree); $this->assertEqual(count($locations), 6); } } ?>