summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php b/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php
deleted file mode 100644
index 3d9fc840..00000000
--- a/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-
-/**
- * testOnClickAttribute
- *
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @version $Revision: $ $Date: $
- * @package System.Web.UI.WebControls
- * @since 3.0
- */
-class testOnClickAttribute extends TPage
-{
- function doClick()
- {
- $this->clickState->setText("Post Back clicked!");
- }
-}
-
-class OnClickAttributeTestCase extends SeleniumTestCase
-{
- function test()
- {
- $page = Prado::getApplication()->getTestPage(__FILE__);
- $this->open($page);
- $this->assertTitle("Test Attributes.OnClick");
- $this->click("link=Click me");
- $this->assertConfirmation("Are you sure?");
- $this->chooseCancelOnNextConfirmation();
- $this->assertTextNotPresent("Post Back clicked!");
- $this->clickAndWait("link=Click me");
- $this->assertConfirmation("Are you sure?");
- $this->assertTextPresent("Post Back clicked!");
- }
-}
-
-?> \ No newline at end of file