From fe60cc221f922ea362826e2d00431c5df28fe85f Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Oct 2006 03:46:05 +0000 Subject: fixed #410 #412 --- .../protected/pages/ActiveCheckBoxTest.page | 12 ++-- .../protected/pages/ActiveRadioButtonTest.page | 2 +- .../protected/pages/AutoCompleteTest.page | 21 +++--- .../protected/pages/AutoCompleteTest.php | 2 +- .../pages/CallbackCustomValidatorTest.page | 7 +- .../protected/pages/CallbackOptionsTest.page | 16 ++--- .../protected/pages/RatingList.page | 79 +++++++++++++--------- .../active-controls/protected/pages/RatingList.php | 7 +- .../protected/pages/TInPlaceTextBoxTest.page | 6 +- .../protected/pages/TimeTriggeredCallbackTest.page | 2 +- .../active-controls/tests/AutoCompleteTestCase.php | 31 ++++++++- 11 files changed, 114 insertions(+), 71 deletions(-) (limited to 'tests') diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.page index 9ff09bb6..431d42f2 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.page @@ -2,25 +2,25 @@

Active CheckBox Test

- +
- -
-
Loading... diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page index c5c40c44..2bb4c9de 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page @@ -6,7 +6,7 @@ - + - + - +

TAutoComplete Test

Manual Testing Required
- +
    - + + ResultPanel.CssClass="autocomplete" />


    diff --git a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php index 997e9bdd..dbce7531 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php @@ -15,7 +15,7 @@ class AutoCompleteTest extends TPage public function callback_requested($sender, $param) { - $this->label1->Text = "Label 1: ".$this->textbox3->Text; + $this->label1->Text = "Label 1: ".$sender->Text; } protected function matchCountries($token) diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page index 2af4b3c8..ae1fe3d2 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page @@ -24,10 +24,9 @@ ErrorMessage="*" ControlCssClass="required" OnServerValidate="validate_text1"> - - diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page b/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page index 6e8b8a1e..3cecbade 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page @@ -1,6 +1,6 @@

    TCallbackOptions Test

    - + $("status").show(); @@ -12,23 +12,23 @@ Element.update("label1", "Button 1 has returned"); - + - + Element.update("label2", "Button 2 has returned"); - + - + Element.update("label3", "Button 3 has returned"); - + - +
    Label 1
    Label 2
    Label 3
    \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/RatingList.page b/tests/FunctionalTests/active-controls/protected/pages/RatingList.page index 190e6020..a615363b 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/RatingList.page +++ b/tests/FunctionalTests/active-controls/protected/pages/RatingList.page @@ -1,57 +1,69 @@ - - - - - - + + + + + +
    - - - - - - + + + + + +
    - + - - - - - - - - - - + + + + + + + + + +
    - - + - - - - + + + +
    @@ -64,8 +76,9 @@ Loading...
- - + + + diff --git a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php index d31b6166..c6661182 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php +++ b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php @@ -4,7 +4,6 @@ class RatingList extends TPage { function list1_oncallback($sender, $param) { - $sender->Enabled=false; } function button1_clicked($sender, $param) @@ -14,9 +13,13 @@ class RatingList extends TPage function button2_clicked($sender, $param) { - $this->list1->SelectedIndex=3; $this->list1->Enabled=false; } + + function button5_clicked($sender, $param) + { + $this->list1->SelectedIndex=3; + } } ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page index 7010ca0f..cf43dea6 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page @@ -43,9 +43,9 @@ EditTriggerControlID="link1" CssClass="textbox" Text="Label 1"> - + - diff --git a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php index cb1a6604..96c0fb4b 100644 --- a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php @@ -9,12 +9,37 @@ class AutoCompleteTestCase extends SeleniumTestCase $this->assertText("label1", "Label 1"); - $this->type("textbox3", "Australia"); - $this->pause(800); + $this->keyPress("textbox3", 'a'); + $this->pause(1000); + $this->verifyTextPresent('Andorra'); + $this->keyPress("textbox3", 'u'); + $this->pause(1000); + $this->verifyTextPresent('Australia'); $this->click("heading"); //click somewhere else. + $this->waitForText("label1", "suggestion for au"); + $this->assertText("label1", "suggestion for au"); + $this->click("css=#textbox3_result ul li"); + $this->pause(800); + $this->assertText("label1", "Label 1: Austria"); + + $this->keyPress("textbox2", "c"); + $this->pause(800); + $this->keyPress("textbox2", "u"); + $this->pause(800); + $this->click('css=#textbox2_result ul li'); $this->pause(800); - $this->assertText("label1", "Label 1: Australia"); + $this->assertText("label1", "Label 1: Cuba"); + $this->keyPress("textbox2", ","); + + $this->keyPress("textbox2", "m"); + $this->pause(800); + + $this->keyPress("textbox2", "e"); + $this->pause(800); + $this->click('css=#textbox2_result ul li'); + $this->pause(800); + $this->assertText("label1", "Label 1: Cuba,Mexico"); } } -- cgit v1.2.3