From fb29e39241b47fee99a17fab73447b9e23eabd83 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 26 Mar 2007 07:40:53 +0000 Subject: update tests for radio button, update ajax3.js (null post values are ignored) --- .../active-controls/protected/pages/ActiveRadioButtonListTest.php | 1 + .../active-controls/tests/ActiveDropDownListTestCase.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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"); -- cgit v1.2.3