summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls
diff options
context:
space:
mode:
authorwei <>2007-03-26 07:40:53 +0000
committerwei <>2007-03-26 07:40:53 +0000
commitfb29e39241b47fee99a17fab73447b9e23eabd83 (patch)
treeba567d674a9d11018600824da3d0fcf1300e5c6b /tests/FunctionalTests/active-controls
parentbd0116cd205fea7d71849625352ac8a9adf7d14f (diff)
update tests for radio button, update ajax3.js (null post values are ignored)
Diffstat (limited to 'tests/FunctionalTests/active-controls')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php1
-rw-r--r--tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php
index 930d671b..ee805e11 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php
@@ -5,6 +5,7 @@ class ActiveRadioButtonListTest extends TPage
function list1_callback($sender, $param)
{
$values = $sender->getSelectedValues();
+ var_dump($values);
$this->label1->setText("Selection: ".implode(', ', $values));
}
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php
index 44435199..5899a6ba 100644
--- a/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php
+++ b/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php
@@ -23,8 +23,10 @@ class ActiveDropDownListTestCase extends SeleniumTestCase
// due to clearing selection and then updating the selection
// otherwise it should not fire the changed event (fired by js because of change to options).
- $this->assertText("label1", "Selection 1: value 1");
+ $this->assertText("label1", "Label 1");
+ $this->select("list1", "item 1");
+ $this->pause(800);
$this->select("list2", "value 1 - item 4");
$this->pause(800);
$this->assertText("label1", "Selection 2: value 1 - item 4");