summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php32
-rw-r--r--tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl2
-rw-r--r--tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page16
-rw-r--r--tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php44
-rw-r--r--tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page4
-rw-r--r--tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.page7
-rw-r--r--tests/FunctionalTests/protected/pages/UI/testOnClickAttribute.php36
7 files changed, 0 insertions, 141 deletions
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