summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
diff options
context:
space:
mode:
authorwei <>2006-01-21 02:07:59 +0000
committerwei <>2006-01-21 02:07:59 +0000
commit407aa2ff5d56859fcd1f47b85b4c4180d035c428 (patch)
tree7c4442ad2652f3021a969391fd8a468ca9400100 /tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
parentf74267f8927d39b5cb3dc43203060488371127c9 (diff)
Fixed DefaultButton and TLinkButton
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
index bc88dc00..2b0ba466 100644
--- a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
+++ b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php
@@ -8,4 +8,26 @@ class TestTPanelDefaultButton extends TPage
}
}
+/**
+ *
+ *
+ * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @version $Revision: $ $Date: $
+ * @package System.Web.UI.WebControls
+ * @since 3.0
+ */
+class DefaultButtonTest extends SeleniumTestCase
+{
+ function setup()
+ {
+ $page = Prado::getApplication()->getTestPage(__FILE__);
+ $this->open($page);
+ }
+
+ function testClick()
+ {
+ $this->clickAndWait("ctl0_Content_Button2");
+ $this->assertTextPresent("You have clicked on 'button2'.");
+ }
+}
?> \ No newline at end of file