From 614abf2377f4348df56f34de674b27ad1ffe2917 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 11 Mar 2006 18:16:38 +0000 Subject: Deleted some unused tests. --- .../protected/pages/UI/LabeledTextBox.php | 32 ---------------- .../protected/pages/UI/LabeledTextBox.tpl | 2 - .../pages/UI/TestTPanelDefaultButton.page | 16 -------- .../protected/pages/UI/TestTPanelDefaultButton.php | 44 ---------------------- .../protected/pages/UI/testLabeledTextBox.page | 4 -- .../protected/pages/UI/testOnClickAttribute.page | 7 ---- .../protected/pages/UI/testOnClickAttribute.php | 36 ------------------ 7 files changed, 141 deletions(-) delete mode 100644 tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php delete mode 100644 tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl delete mode 100644 tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php delete mode 100644 tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page delete mode 100644 tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php (limited to 'tests/FunctionalTests/protected/pages/UI') diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php deleted file mode 100644 index 15702d29..00000000 --- a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php +++ /dev/null @@ -1,32 +0,0 @@ - - * @version $Revision: $ $Date: $ - * @package System.Web.UI.WebControls - * @since 3.0 - */ -class LabeledTextBox extends TTemplateControl -{ - /** - * @return TTextBox textbox instance - */ - public function getTextBox() - { - $this->ensureChildControls(); - return $this->getRegisteredObject('textbox'); - } - - /** - * @return TLabel textbox label - */ - public function getLabel() - { - $this->ensureChildControls(); - return $this->getRegisteredObject('label'); - } -} - -?> \ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl deleted file mode 100644 index 3c8cc11f..00000000 --- a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page deleted file mode 100644 index 68b5445e..00000000 --- a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page +++ /dev/null @@ -1,16 +0,0 @@ -<%@ Title="Test DefaultButton On Panel" %> - -

Test DefaultButton On Panel

- - This is panel content with a - and two buttons:
- - - - -
- When you change focus to the panel and hit 'enter' key, button2 - will be clicked because it is set as the default button of the panel. -
- -
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php deleted file mode 100644 index 49418efd..00000000 --- a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php +++ /dev/null @@ -1,44 +0,0 @@ -Result->Text="You have clicked on '$sender->Text'."; - } -} - -/** - * - * - * @author Wei Zhuo - * @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->verifyTitle("Test DefaultButton On Panel", ""); - $this->assertTextNotPresent("You have clicked on", ""); - $this->clickAndWait("link=button 3", ""); - $this->verifyTextPresent("You have clicked on 'button 3'.", ""); - $this->clickAndWait("//input[@type='submit' and @value='button1']", ""); - $this->verifyTextPresent("You have clicked on 'button1'. ", ""); - $this->clickAndWait("//input[@type='submit' and @value='button2']", ""); - $this->verifyTextPresent("You have clicked on 'button2'. ", ""); - $this->clickAndWait("link=button 3", ""); - $this->verifyTextPresent("You have clicked on 'button 3'. ", ""); - $this->click("ctl0_Content_check1", ""); - $this->clickAndWait("//input[@type='submit' and @value='button2']", ""); - $this->verifyTextPresent("You have clicked on 'button2'. ", ""); - } -} -?> \ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page b/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page deleted file mode 100644 index 248e0cc5..00000000 --- a/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page b/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page deleted file mode 100644 index 31381c40..00000000 --- a/tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page +++ /dev/null @@ -1,7 +0,0 @@ -<%@ Title="Test Attributes.OnClick" %> - -

Test Attributes.OnClick

- - -
\ No newline at end of file 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 @@ - - * @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 -- cgit v1.2.3