diff options
author | carl <> | 2007-06-09 13:26:50 +0000 |
---|---|---|
committer | carl <> | 2007-06-09 13:26:50 +0000 |
commit | c91ec2590f9c1f7689c468284dc4d523da308897 (patch) | |
tree | 48408a62100ecc39574328f1d4cd04f959a25552 /tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php | |
parent | c6d4662e08b300ae2d388322f8be8e6d61994074 (diff) |
added functional test for TActiveHiddenField
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php new file mode 100644 index 00000000..259a6516 --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveHiddenFieldTestCase.php @@ -0,0 +1,24 @@ +<?php + +class ActiveHiddenFieldTestCase extends SeleniumTestCase +{ + function test() + { + $this->open("active-controls/index.php?page=ActiveHiddenFieldTest"); + $fieldEmpty = 'No longer empty'; + $fieldUsed = 'My value'; + + $this->verifyTextPresent('Value of current hidden field'); + $this->click('Button1'); + $this->pause(800); + $this->assertText('ResponseLabel', $fieldEmpty); + $this->click('Button2'); + $this->pause(800); + $this->assertText('ResponseLabel', $fieldUsed); + $this->click('Button3'); + $this->pause(800); + $this->assertText('ResponseLabel', $fieldEmpty.'|'.$fieldUsed); + } +} + +?>
\ No newline at end of file |