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/Tickets/Ticket_21.page | 10 -----
.../protected/pages/Tickets/Ticket_21.php | 37 ------------------
.../protected/pages/Tickets/Ticket_27.page | 17 ---------
.../protected/pages/Tickets/Ticket_27.php | 25 ------------
.../protected/pages/Tickets/config.xml | 5 ---
.../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 ------------------
.../protected/pages/Validation/CheckBox.page | 35 -----------------
.../protected/pages/Validation/CheckBox.php | 39 -------------------
.../pages/Validation/RequiredFieldValidator.page | 13 -------
.../pages/Validation/RequiredFieldValidator.php | 31 ---------------
.../pages/Validation/testInitialValueRequired.page | 11 ------
.../pages/Validation/testInitialValueRequired.php | 25 ------------
18 files changed, 389 deletions(-)
delete mode 100644 tests/FunctionalTests/protected/pages/Tickets/Ticket_21.page
delete mode 100644 tests/FunctionalTests/protected/pages/Tickets/Ticket_21.php
delete mode 100644 tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page
delete mode 100644 tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php
delete mode 100644 tests/FunctionalTests/protected/pages/Tickets/config.xml
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
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/CheckBox.page
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/CheckBox.php
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page
delete mode 100644 tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
(limited to 'tests/FunctionalTests/protected/pages')
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.page b/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.page
deleted file mode 100644
index e0619ea1..00000000
--- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.page
+++ /dev/null
@@ -1,10 +0,0 @@
-
-TRadioButton always postback if AutoPostBack=true
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.php b/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.php
deleted file mode 100644
index 7a9e3519..00000000
--- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_21.php
+++ /dev/null
@@ -1,37 +0,0 @@
-IsPostBack)
- $this->setViewState("clicks", 0);
- }
-
- public function doClick($sender, $param)
- {
- $clicks = $this->getViewState("clicks");
- $clicks++;
- $this->label1->setText("Radio button clicks: $clicks");
- $this->setViewState("clicks", $clicks);
- }
-}
-
-class Ticket_21_TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open(Prado::getApplication()->getTestPage(__FILE__));
- $this->assertTitle("Verifying Ticket 21");
- $this->clickAndWait("ctl0_Content_button1");
- $this->verifyTextPresent("Radio button clicks: 1", "");
- $this->click("ctl0_Content_button1");
- $this->verifyTextPresent("Radio button clicks: 1", "");
-
- }
-}
-
-?>
-
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page
deleted file mode 100644
index f92511c7..00000000
--- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page
+++ /dev/null
@@ -1,17 +0,0 @@
-
-TCheckBoxList demo js error on IE
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php
deleted file mode 100644
index 05483535..00000000
--- a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php
+++ /dev/null
@@ -1,25 +0,0 @@
-open($this->getPage($this));
- $this->verifyTitle("Verifying Ticket 27", "");
- $this->click("//input[@value='Agree']", "");
- $this->assertVisible("ctl0_Content_validator1", "");
- $this->type("ctl0_Content_TextBox", "122");
- $this->assertNotVisible("ctl0_Content_validator1", "");
- $this->clickAndWait("//input[@value='Disagree']", "");
- $this->assertNotVisible("ctl0_Content_validator1", "");
- }
-}
-
-?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Tickets/config.xml b/tests/FunctionalTests/protected/pages/Tickets/config.xml
deleted file mode 100644
index 8e9db49e..00000000
--- a/tests/FunctionalTests/protected/pages/Tickets/config.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
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
diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.page b/tests/FunctionalTests/protected/pages/Validation/CheckBox.page
deleted file mode 100644
index 0653a0c2..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.page
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@ Title="An AutoPostBack CheckBox" %>
-
-
-An AutoPostBack CheckBox
-
-
-
-
-
-
-
-Input:
-
-
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php
deleted file mode 100644
index 2c83ad16..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php
+++ /dev/null
@@ -1,39 +0,0 @@
-IsPostBack)
- $this->dataBind();
- }
-}
-
-class CheckBoxTestCase2 extends SeleniumTestCase
-{
- function setup()
- {
- $this->open(Prado::getApplication()->getTestPage(__FILE__));
- }
-
- function testValidator()
- {
- $this->verifyTitle("An AutoPostBack CheckBox");
-
- //test checkbox 2 should fire the validator
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->click("ctl0_Content_checkbox2");
-// $this->pause(100);
- $this->assertVisible("ctl0_Content_validator1");
-
- //write some text, and see what it
- $this->type('ctl0_Content_TextBox', "hello");
-// $this->pause(100);
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->clickAndWait("ctl0_Content_checkbox2"); //submit
- $this->assertNotVisible("ctl0_Content_validator1");
-
- }
-}
-
-?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
deleted file mode 100644
index 5447b834..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ Title="Basic TRequiredFieldValidator" %>
-
-Basic TRequiredFieldValidator Test1
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
deleted file mode 100644
index 97ec656b..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
+++ /dev/null
@@ -1,31 +0,0 @@
-IsPostBack)
- $this->dataBind();
- }
-}
-
-class RequiredFieldTestCase extends SeleniumTestCase
-{
- function setup()
- {
- $this->open(Prado::getApplication()->getTestPage(__FILE__));
- }
-
- function testValidator()
- {
- $this->assertTextPresent("Basic TRequiredFieldValidator Test1");
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->click("ctl0_Content_button1");
- $this->assertVisible("ctl0_Content_validator1");
- $this->type("ctl0_Content_text1", "test");
- $this->clickAndWait("ctl0_Content_button1");
- $this->assertNotVisible("ctl0_Content_validator1");
- }
-}
-
-?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page
deleted file mode 100644
index 62cf761c..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page
+++ /dev/null
@@ -1,11 +0,0 @@
-<%@ Title="InitialValue Validation Test" %>
-
-InitialValue Validation Test
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
deleted file mode 100644
index cc35accc..00000000
--- a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php
+++ /dev/null
@@ -1,25 +0,0 @@
-getTestPage(__FILE__);
- $this->open($page);
- $this->assertTitle("InitialValue Validation Test");
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->type("ctl0_Content_text1", "hello");
- $this->clickAndWait("ctl0_Content_submit");
- $this->assertNotVisible("ctl0_Content_validator1");
- $this->type("ctl0_Content_text1", "test");
- $this->click("ctl0_Content_submit");
- $this->assertVisible("ctl0_Content_validator1");
- }
-}
-
-?>
\ No newline at end of file
--
cgit v1.2.3