diff options
19 files changed, 0 insertions, 407 deletions
diff --git a/.gitattributes b/.gitattributes index 791b4565..e2289646 100644 --- a/.gitattributes +++ b/.gitattributes @@ -792,28 +792,10 @@ tests/FunctionalTests/protected/pages/Layout.php -text tests/FunctionalTests/protected/pages/Layout.tpl -text tests/FunctionalTests/protected/pages/TicketTestPage.php -text tests/FunctionalTests/protected/pages/TicketTestPage.tpl -text -tests/FunctionalTests/protected/pages/Tickets/Ticket_21.page -text -tests/FunctionalTests/protected/pages/Tickets/Ticket_21.php -text -tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page -text -tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php -text -tests/FunctionalTests/protected/pages/Tickets/config.xml -text tests/FunctionalTests/protected/pages/UI/ColorPicker.page -text tests/FunctionalTests/protected/pages/UI/DatePicker.page -text -tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php -text -tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl -text tests/FunctionalTests/protected/pages/UI/RatingList.page -text -tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page -text -tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php -text tests/FunctionalTests/protected/pages/UI/testHtmlArea.page -text -tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page -text -tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page -text -tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php -text -tests/FunctionalTests/protected/pages/Validation/CheckBox.page -text -tests/FunctionalTests/protected/pages/Validation/CheckBox.php -text -tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page -text -tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php -text -tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.page -text -tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php -text tests/FunctionalTests/protected/pages/ViewSource.page -text tests/FunctionalTests/protected/pages/ViewSource.php -text tests/FunctionalTests/protected/pages/config.xml -text 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 @@ -<com:TContent ID="Content">
-<h2 class="defect">TRadioButton always postback if AutoPostBack=true</h2>
-
-<com:TRadioButton ID="button1"
- AutoPostBack="true"
- OnCheckedChanged="doClick" />
-<com:TLabel ForControl="button1" Text="radio button 1" /> <br>
-
-<com:TLabel ID="label1" />
-</com:TContent>
\ 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 @@ -<?php
-
-class Ticket_21 extends TPage
-{
- public function onLoad($param)
- {
- parent::onLoad($param);
-
- if(!$this->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 @@ -<com:TContent ID="Content">
-<h2 class="defect">TCheckBoxList demo js error on IE</h2>
-
-<com:TTextBox ID="TextBox" />
-<com:TRequiredFieldValidator
- ID="validator1"
- ControlToValidate="TextBox"
- ErrorMessage="You must enter a value"
- Display="Dynamic"
- ValidationGroup="Group2" />
-<com:TCheckBoxList AutoPostBack="true" ValidationGroup="Group2">
- <com:TListItem Text="Agree" />
- <com:TListItem Text="Disagree" />
-</com:TCheckBoxList>
-
-
-</com:TContent>
\ 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 @@ -<?php
-
-class Ticket_27 extends TPage
-{
-
-
-}
-
-class Ticket_27_TestCase extends SeleniumTestCase
-{
-
- function test()
- {
- $this->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 @@ -<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
- <pages MasterClass="Pages.TicketTestPage" />
-</configuration>
\ 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 @@ -<?php
-
-/**
- * LabeledTextBox
- *
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @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 @@ -<com:TLabel ID="label" ForControl="textbox" Text="label:"/>
-<com:TTextBox ID="textbox" />
\ 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" %>
-<com:TContent ID="Content">
- <h1>Test DefaultButton On Panel</h1>
- <com:TPanel DefaultButton="Button2" Width="400px">
- This is panel content with a <com:TLabel Text="label" Font.Italic="true" />
- and two buttons: <br/>
- <com:TCheckBox id="check1"/>
- <com:TButton ID="Button1" Text="button1" OnClick="buttonClicked" />
- <com:TButton ID="Button2" Text="button2" OnClick="buttonClicked" />
- <com:TLabel ID="Result" ForeColor="red" />
- <br/>
- When you change focus to the panel and hit 'enter' key, <tt>button2</tt>
- will be clicked because it is set as the default button of the panel.
- </com:TPanel>
- <com:TLinkButton Text="button 3" OnClick="buttonClicked" />
-</com:TContent>
\ 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 @@ -<?php
-
-class TestTPanelDefaultButton extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- $this->Result->Text="You have clicked on '$sender->Text'.";
- }
-}
-
-/**
- *
- *
- * @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->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 @@ -<com:TContent ID="Content">
- <com:LabeledTextBox Label.Text="username:"/>
- <com:LabeledTextBox Label.Text="password:"/>
-</com:TContent>
\ 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" %>
-<com:TContent ID="Content">
-<h1>Test Attributes.OnClick</h1>
- <com:TLinkButton OnClick="doClick" Text="Click me"
- Attributes.OnClick="if(!confirm('Are you sure?')) return false;" />
- <com:TLabel ID="clickState" />
-</com:TContent>
\ 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 @@ -<?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 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 |