diff options
author | wei <> | 2006-09-10 01:03:56 +0000 |
---|---|---|
committer | wei <> | 2006-09-10 01:03:56 +0000 |
commit | f1f33db1f85c0893205a4a00c203d884dc1af1a5 (patch) | |
tree | de0fd5a1b52572708209c98370c9061a19ec5193 /tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php | |
parent | fa760c403236b6fe7fdfd5785e2cd34764c24755 (diff) |
Changed TCallbackEventParameter::Parameter to TCallbackEventParameter::CallbackParameter
Add TActiveButton and TActiveCheckBox quickstart docs.
Diffstat (limited to 'tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php new file mode 100644 index 00000000..8859d729 --- /dev/null +++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveButtonTestCase.php @@ -0,0 +1,38 @@ +<?php
+//$Id$
+class ActiveButtonTestCase extends SeleniumTestCase
+{
+ function test ()
+ {
+ $this->open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveButton.Home&notheme=true");
+
+ $this->verifyTitle("PRADO QuickStart Sample", "");
+
+ $this->assertTextPresent('TActiveButton Samples (AJAX)');
+
+ // a click button
+ $this->verifyElementNotPresent("//input[@type='submit' and @value=\"I'm clicked\"]");
+ $this->click("//input[@type='submit' and @value='click me']", "");
+ $this->pause(800);
+ $this->verifyElementPresent("//input[@type='submit' and @value=\"I'm clicked\"]");
+
+ // a command button
+ $this->verifyElementNotPresent("//input[@type='submit' and @value=\"Name: test, Param: value using callback\"]");
+ $this->click("//input[@type='submit' and @value='click me']", "");
+ $this->pause(800);
+ $this->verifyElementPresent("//input[@type='submit' and @value=\"Name: test, Param: value using callback\"]");
+
+ // a button causing validation
+ $this->verifyNotVisible('ctl0_body_ctl2');
+ $this->click("//input[@type='submit' and @value='submit']", "");
+ $this->pause(800);
+ $this->verifyVisible('ctl0_body_ctl2');
+ $this->type("ctl0\$body\$TextBox", "test");
+ $this->click("//input[@type='submit' and @value='submit']", "");
+ $this->pause(800);
+ $this->verifyNotVisible('ctl0_body_ctl2');
+ $this->verifyElementPresent("//input[@type='submit' and @value=\"I'm clicked using callback\"]", "");
+ }
+}
+
+?>
\ No newline at end of file |