diff options
author | wei <> | 2006-04-25 07:01:04 +0000 |
---|---|---|
committer | wei <> | 2006-04-25 07:01:04 +0000 |
commit | 8b0c8f0d0557d8ab88409cd9691cd1ee279321d5 (patch) | |
tree | 2c570f0d3839089edbb7e53244adcd2db98cb992 /tests/FunctionalTests | |
parent | 7fa4dd96f1ac0c57e6c67faf9f9dda46f1dd1b89 (diff) |
Complete #70, update TDateFormat, NumberFormat add zerofill. Update TDatePicker quickstart doc, I18N quickstart doc.
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r-- | tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php new file mode 100644 index 00000000..1ca3de5d --- /dev/null +++ b/tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php @@ -0,0 +1,49 @@ +<?php
+/*
+ * Created on 25/04/2006
+ */
+
+class DataTypeValidatorTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = "ctl0_Content_";
+ $this->open("validators/index.php?page=DataTypeValidator", "");
+ $this->verifyTextPresent("Data Type Validator Tests", "");
+ $this->clickAndWait("//input[@type='submit' and @value='submit!']", "");
+
+ $this->assertNotVisible("{$base}validator1");
+ $this->assertNotVisible("{$base}validator2");
+ $this->assertNotVisible("{$base}validator3");
+
+ $this->type("{$base}textbox1", "a");
+ $this->type("{$base}textbox2", "b");
+ $this->type("{$base}textbox3", "c");
+ $this->click("//input[@type='submit' and @value='submit!']", "");
+
+ $this->assertVisible("{$base}validator1");
+ $this->assertVisible("{$base}validator2");
+ $this->assertVisible("{$base}validator3");
+
+ $this->type("{$base}textbox1", "12");
+ $this->type("{$base}textbox2", "12.5");
+ $this->type("{$base}textbox3", "2/10/2005");
+ $this->clickAndWait("//input[@type='submit' and @value='submit!']", "");
+
+ $this->assertNotVisible("{$base}validator1");
+ $this->assertNotVisible("{$base}validator2");
+ $this->assertNotVisible("{$base}validator3");
+
+ $this->type("{$base}textbox1", "12.2");
+ $this->type("{$base}textbox2", "-12.5");
+ $this->type("{$base}textbox3", "2/13/2005");
+ $this->click("//input[@type='submit' and @value='submit!']", "");
+
+ $this->assertVisible("{$base}validator1");
+ $this->assertNotVisible("{$base}validator2");
+ $this->assertVisible("{$base}validator3");
+ }
+
+}
+
+?>
|