diff options
author | wei <> | 2006-09-13 23:33:41 +0000 |
---|---|---|
committer | wei <> | 2006-09-13 23:33:41 +0000 |
commit | 9f2905f5e2a6d0ab33e4e2d82162183cfd63a042 (patch) | |
tree | 19ac593839f1003ef91d8b4a0d7e8e25fbf460e3 /tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php | |
parent | 348fb25264f6cc9251f5ae9cb8c7a8a1013e2d67 (diff) |
Fixed #376
Diffstat (limited to 'tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php new file mode 100644 index 00000000..a78f5e2f --- /dev/null +++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCustomValidatorTestCase.php @@ -0,0 +1,33 @@ +<?php
+//$Id: ActiveButtonTestCase.php 1405 2006-09-10 01:03:56Z wei $
+class ActiveCustomValidatorTestCase extends SeleniumTestCase
+{
+ function test ()
+ {
+ $this->open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCustomValidator.Home&notheme=true");
+
+ $this->verifyTitle("PRADO QuickStart Sample", "");
+
+ $this->assertTextPresent('TActiveCustomValidator Samples (AJAX)');
+
+ $base = 'ctl0_body_';
+
+ $this->assertNotVisible($base.'validator1');
+ $this->click($base.'button1');
+ $this->pause(800);
+ $this->assertVisible($base.'validator1');
+
+ $this->type($base.'textbox1', 'hello');
+ $this->pause(800);
+ $this->assertVisible($base.'validator1');
+
+ $this->type($base.'textbox1', 'Prado');
+ $this->pause(800);
+ $this->assertNotVisible($base.'validator1');
+
+ $this->clickAndWait($base.'button1');
+ $this->assertNotVisible($base.'validator1');
+ }
+}
+
+?>
\ No newline at end of file |