|
|
@@ -271,6 +271,26 @@ class Zend_Dojo_Form_Element_EditorTest extends PHPUnit_Framework_TestCase
|
|
|
$this->assertEquals(5, count($plugins));
|
|
|
}
|
|
|
|
|
|
+ public function testMinHeightCanBeSetToPixels()
|
|
|
+ {
|
|
|
+ $this->element->setMinHeight('250px');
|
|
|
+ $this->assertEquals($this->element->getDijitParam('minHeight'), $this->element->getMinHeight());
|
|
|
+ $this->assertEquals('250px', $this->element->getMinHeight());
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testMinHeightCanBeSetToPercentage()
|
|
|
+ {
|
|
|
+ $this->element->setMinHeight('50%');
|
|
|
+ $this->assertEquals($this->element->getDijitParam('minHeight'), $this->element->getMinHeight());
|
|
|
+ $this->assertEquals('50%', $this->element->getMinHeight());
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testMinHeightDefaultMeasurementIsEm()
|
|
|
+ {
|
|
|
+ $this->element->setMinHeight('10');
|
|
|
+ $this->assertEquals($this->element->getDijitParam('minHeight'), $this->element->getMinHeight());
|
|
|
+ $this->assertEquals('10em', $this->element->getMinHeight());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// Call Zend_Dojo_Form_Element_EditorTest::main() if this source file is executed directly.
|