summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation
diff options
context:
space:
mode:
authorxue <>2006-03-11 18:16:38 +0000
committerxue <>2006-03-11 18:16:38 +0000
commit614abf2377f4348df56f34de674b27ad1ffe2917 (patch)
tree2055155a38e5fd3dc1c3dd304c0140c4c8ac8ec5 /tests/FunctionalTests/protected/pages/Validation
parent492021fec24cb583e6bd2e95b3f6c9ea7a271b5f (diff)
Deleted some unused tests.
Diffstat (limited to 'tests/FunctionalTests/protected/pages/Validation')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/CheckBox.page35
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/CheckBox.php39
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page13
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php31
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page11
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php25
6 files changed, 0 insertions, 154 deletions
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" %>
-<com:TContent ID="Content">
-
-<h1>An AutoPostBack CheckBox</h1>
-
-<com:TCheckBox
- AutoPostBack="true"
- Text="Without ValidationGroup"
- ID="checkbox1"
- />
-<br/>
-<com:TCheckBox
- AutoPostBack="true"
- Text="With ValidationGroup"
- ValidationGroup="Group"
- ID="checkbox2"
- />
-<br/>
-<com:TCheckBox
- AutoPostBack="true"
- CausesValidation="false"
- Text="CausesValidation=false"
- ID="checkbox3"
- />
-<br/>
-Input: <com:TTextBox ID="TextBox"/>
-<com:TRequiredFieldValidator
- ControlToValidate="TextBox"
- Display="Dynamic"
- ErrorMessage="input required in the textbox"
- ValidationGroup="Group"
- ID="validator1"
- />
-<br/>
-</com:TContent> \ 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 @@
-<?php
-
-class CheckBox extends TPage
-{
- public function onLoad($param)
- {
- if(!$this->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" %>
-<com:TContent ID="Content">
-<h1>Basic TRequiredFieldValidator Test1</h1>
- <com:TTextBox ID="text1" />
- <com:TRequiredFieldValidator
- ID="validator1"
- FocusOnError="true"
- FocusElementID="<%# $this->Page->text2->ClientID %>"
- ControlToValidate="text1"
- ErrorMessage="*" />
- <com:TButton ID="button1" Text="Click" />
- <com:TTextBox ID="text2" />
-</com:TContent> \ 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 @@
-<?php
-
-class RequiredFieldValidator extends TPage
-{
- public function onLoad($param)
- {
- if(!$this->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" %>
-<com:TContent ID="Content">
-<h1>InitialValue Validation Test</h1>
-<com:TTextBox ID="text1" />
-<com:TRequiredFieldValidator ID="validator1"
- ControlToValidate="text1"
- InitialValue="test"
- ErrorMessage="Text must not equal to 'test'" />
-
-<com:TButton ID="submit" Text="Submit!" />
-</com:TContent> \ 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 @@
-<?php
-
-class testInitialValueRequired extends TPage
-{
-
-}
-
-class InitialValueRequiredTestCase extends SeleniumTestCase
-{
- function test()
- {
- $page = Prado::getApplication()->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