From a6be5564823be40670e0cad8dc758557dbd37549 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Sat, 24 Jun 2006 05:46:22 +0000
Subject: Update active controls.
---
.../protected/pages/ActiveDropDownList.page | 26 +++++++++++++++
.../protected/pages/ActiveDropDownList.php | 39 ++++++++++++++++++++++
.../protected/pages/ActiveHyperLinkTest.page | 13 ++++++++
.../protected/pages/ActiveHyperLinkTest.php | 26 +++++++++++++++
.../protected/pages/TActiveCheckBoxListTest.page | 24 +++++++++++++
.../protected/pages/TActiveCheckBoxListTest.php | 37 ++++++++++++++++++++
6 files changed, 165 insertions(+)
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.page
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.php
(limited to 'tests/FunctionalTests/active-controls/protected/pages')
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page
new file mode 100644
index 00000000..8b8962a8
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page
@@ -0,0 +1,26 @@
+
+ Active Drop Down List Test Case
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
new file mode 100644
index 00000000..7060d84b
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
@@ -0,0 +1,39 @@
+label1->setText("Selection 1: ".$sender->getSelectedValue());
+ $this->addOptionsToList2($sender->getSelectedValue());
+ }
+
+ function addOptionsToList2($parent)
+ {
+ for($i = 0; $i < 5; $i++)
+ $this->list2->Items[$i] = $parent.' - item '.($i+1);
+ $this->list2->setEnabled(true);
+ }
+
+ function list2_changed($sender)
+ {
+ $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
+ }
+
+ function select_index_3()
+ {
+ $this->list1->setSelectedIndex(3);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_2()
+ {
+ $this->list1->setSelectedValue("value 2");
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page
new file mode 100644
index 00000000..59098052
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page
@@ -0,0 +1,13 @@
+
+ Active HyperLink Test Case
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php
new file mode 100644
index 00000000..cd4880d2
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php
@@ -0,0 +1,26 @@
+link1->Text = "Pradosoft.com";
+ }
+
+ function change_image()
+ {
+ $this->link1->ImageUrl = "...";
+ }
+
+ function change_target()
+ {
+ $this->link1->Target = "_top";
+ }
+
+ function change_url()
+ {
+ $this->link1->NavigateUrl = "http://www.xlab6.com";
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.page b/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.page
new file mode 100644
index 00000000..b30ced69
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.page
@@ -0,0 +1,24 @@
+
+ TActiveCheckBoxList Test Case
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.php b/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.php
new file mode 100644
index 00000000..66bfe83d
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/TActiveCheckBoxListTest.php
@@ -0,0 +1,37 @@
+getSelectedValues();
+ $this->label1->setText("Selection: ".implode(', ', $values));
+ }
+
+ function select_index_123()
+ {
+ $this->list1->setSelectedIndices(array(1,2,3));
+ }
+
+ function select_index_4()
+ {
+ $this->list1->setSelectedIndex(4);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_1()
+ {
+ $this->list1->setSelectedValue("value 1");
+ }
+
+ function select_values_25()
+ {
+ $this->list1->setSelectedValues(array('value 2', 'value 5'));
+ }
+}
+
+?>
\ No newline at end of file
--
cgit v1.2.3