diff options
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php')
-rw-r--r-- | tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php | 22 |
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 |