1<?php 2 3class TestInputSelectHeight extends GenericTest { 4 function TestInputSelectHeight1() { 5 $tree = $this->runPipeline(' 6<select id="input" style="height: 33pt;"></select> 7'); 8 9 $element =& $tree->get_element_by_id('input'); 10 $this->assertEqual($element->get_full_height(), 11 pt2pt(33)); 12 } 13 14 function TestInputSelectHeight2() { 15 $tree = $this->runPipeline(' 16<style> 17* { font-size: 33pt; } 18</style> 19<select id="input"></select> 20'); 21 22 $element =& $tree->get_element_by_id('input'); 23 $this->assertEqual($element->get_full_height(), 24 pt2pt(33) + $element->_get_vert_extra()); 25 } 26} 27 28?>