From 54d4919e3f1b00b644fa3c107acdf20159a1b154 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 12 Aug 2006 05:34:54 +0000 Subject: Update active controls. --- .../protected/pages/ActiveLinkButtonTest.page | 11 +++++ .../protected/pages/ActiveLinkButtonTest.php | 16 +++++++ .../protected/pages/ActiveListBoxTest.page | 27 +++++++++++ .../protected/pages/ActiveListBoxTest.php | 47 +++++++++++++++++++ .../protected/pages/ActiveRadioButtonListTest.page | 22 +++++++++ .../protected/pages/ActiveRadioButtonListTest.php | 27 +++++++++++ .../protected/pages/ActiveRadioButtonTest.page | 38 +++++++++++++++ .../protected/pages/ActiveRadioButtonTest.php | 34 ++++++++++++++ .../protected/pages/ReplaceContentTest.page | 9 ++++ .../protected/pages/ReplaceContentTest.php | 21 +++++++-- .../active-controls/tests/ActiveButtonTestCase.php | 2 +- .../tests/ActiveCheckBoxListTestCase.php | 40 ++++++++-------- .../tests/ActiveCheckBoxTestCase.php | 42 ++++++++--------- .../tests/ActiveDropDownListTestCase.php | 28 +++++------ .../tests/ActiveHyperLinkTestCase.php | 6 +-- .../tests/ActiveLinkButtonTestCase.php | 16 +++++++ .../tests/ActiveListBoxTestCase.php | 53 +++++++++++++++++++++ .../active-controls/tests/ActivePanelTestCase.php | 2 +- .../tests/ActiveRadioButtonListTestCase.php | 47 +++++++++++++++++++ .../tests/ActiveRadioButtonTestCase.php | 54 ++++++++++++++++++++++ .../active-controls/tests/AutoCompleteTestCase.php | 8 ++-- .../tests/CallbackAdapterTestCase.php | 18 ++++---- .../tests/CallbackOptionsTestCase.php | 10 ++-- .../tests/CustomTemplateTestCase.php | 2 +- .../tests/NestedActiveControlsTestCase.php | 10 ++-- .../tests/ReplaceContentTestCase.php | 8 ++-- .../tests/TextBoxCallbackTestCase.php | 4 +- .../tests/TextBoxGroupValidationTestCase.php | 2 +- 28 files changed, 508 insertions(+), 96 deletions(-) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php create mode 100644 tests/FunctionalTests/active-controls/tests/ActiveLinkButtonTestCase.php create mode 100644 tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php create mode 100644 tests/FunctionalTests/active-controls/tests/ActiveRadioButtonListTestCase.php create mode 100644 tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.page new file mode 100644 index 00000000..cb9f0322 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.page @@ -0,0 +1,11 @@ + + +

TActiveLinkButton Functional Test

+ + + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php new file mode 100644 index 00000000..4fc3a23e --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveLinkButtonTest.php @@ -0,0 +1,16 @@ +label1->Text = "Button 1 was clicked "; + } + + function button2_oncallback($sender, $param) + { + $this->label1->Text .= "using callback!"; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.page new file mode 100644 index 00000000..318d53c3 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.page @@ -0,0 +1,27 @@ + + +

Active List Box Functional Test

+ + + + + + + + + +
+ +
+
+ + + + + + + +
+ + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php new file mode 100644 index 00000000..942bb1a0 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php @@ -0,0 +1,47 @@ +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')); + } + + function change_to_multiple() + { + $this->list1->SelectionMode="Multiple"; + } + + function change_to_single() + { + $this->list1->SelectionMode="Single"; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.page new file mode 100644 index 00000000..26feb594 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.page @@ -0,0 +1,22 @@ + +

TActiveRadioButtonList Test Case

+ + + + + + + + +
+ +
+
+ + + +
+ + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php new file mode 100644 index 00000000..930d671b --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonListTest.php @@ -0,0 +1,27 @@ +getSelectedValues(); + $this->label1->setText("Selection: ".implode(', ', $values)); + } + + function select_index_4() + { + $this->list1->setSelectedIndex(4); + } + + function clear_selections() + { + $this->list1->clearSelection(); + } + + function select_value_1() + { + $this->list1->setSelectedValue("value 1"); + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page new file mode 100644 index 00000000..c5c40c44 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.page @@ -0,0 +1,38 @@ + +

Active Radio Button Test

+ + + + + +
+ +
+
+ + + + + + +
+ + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php new file mode 100644 index 00000000..64e7d92e --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRadioButtonTest.php @@ -0,0 +1,34 @@ +radio1->Text = "Hello Radio Button 1"; + } + + function change_radio1_checked() + { + $this->radio1->Checked = !$this->radio1->Checked; + } + + function change_radio2_text() + { + $this->radio2->Text = "Radio Button 2 World"; + } + + function change_radio2_checked() + { + $this->radio2->Checked = !$this->radio2->Checked; + } + + function radiobutton_requested($sender, $param) + { + $this->label1->Text = "Label 1:".$sender->Text. + ($sender->checked ? ' Checked ' : ' Not Checked'); + } + + +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.page b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.page index b0c22587..7842cde9 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.page @@ -9,7 +9,16 @@ Main Panel + + Time : /> + + +
+
+ +
+ diff --git a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php index 0e09a012..a5358d98 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php @@ -4,27 +4,38 @@ class ReplaceContentTest extends TPage { function appendContent($sender, $param) { - $this->CallbackClient->appendContent($this->subpanel, $this->content->Text); + $this->CallbackClient->appendContent($this->subpanel, $this->replacementContent()); } function prependContent($sender, $param) { - $this->CallbackClient->prependContent($this->subpanel, $this->content->Text); + $this->CallbackClient->prependContent($this->subpanel, $this->replacementContent()); } function insertContentBefore($sender, $param) { - $this->CallbackClient->insertContentBefore($this->subpanel, $this->content->Text); + $this->CallbackClient->insertContentBefore($this->subpanel, $this->replacementContent()); } function insertContentAfter($sender, $param) { - $this->CallbackClient->insertContentAfter($this->subpanel, $this->content->Text); + $this->CallbackClient->insertContentAfter($this->subpanel, $this->replacementContent()); } function replaceContent($sender, $param) { - $this->CallbackClient->replaceContent($this->subpanel, $this->content->Text); + $this->CallbackClient->replaceContent($this->subpanel, $this->replacementContent()); + } + + function replacementContent() + { + if($this->check1->Checked) + { + $this->newPanel->Visible=true; + return $this->newPanel; + } + else + return $this->content->Text; } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveButtonTestCase.php index 0a294906..a8795de5 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveButtonTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveButtonTestCase.php @@ -8,7 +8,7 @@ class ActiveButtonTestCase extends SeleniumTestCase $this->verifyTextPresent("TActiveButton Functional Test"); $this->assertText("label1", "Label 1"); $this->click("button2"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Button 1 was clicked using callback!"); } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxListTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxListTestCase.php index af7ea1f0..a66cf853 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxListTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxListTestCase.php @@ -6,42 +6,42 @@ class ActiveCheckBoxListTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=TActiveCheckBoxListTest"); $this->verifyTextPresent("TActiveCheckBoxList Test Case"); - + $this->assertText("label1", "Label 1"); - + $this->click("button1"); - $this->pause(500); + $this->pause(800); $this->assertCheckBoxes(array(1,2,3)); - + $this->click("button2"); - $this->pause(500); + $this->pause(800); $this->assertCheckBoxes(array()); - - + + $this->click("button3"); - $this->pause(500); + $this->pause(800); $this->assertCheckBoxes(array(0)); - - + + $this->click("button4"); - $this->pause(500); + $this->pause(800); $this->assertCheckBoxes(array(4)); - - + + $this->click("button5"); - $this->pause(500); + $this->pause(800); $this->assertCheckBoxes(array(1,4)); - + $this->click("list1_c2"); - $this->pause(500); - $this->assertText("label1", "Selection: value 2, value 3, value 5"); + $this->pause(800); + $this->assertText("label1", "Selection: value 2, value 3, value 5"); $this->click("list1_c2"); - $this->pause(500); - $this->assertText("label1", "Selection: value 2, value 5"); + $this->pause(800); + $this->assertText("label1", "Selection: value 2, value 5"); } - + function assertCheckBoxes($checks, $total = 5) { for($i = 0; $i < $total; $i++) diff --git a/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php index 30dda753..6bf00f05 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php @@ -6,55 +6,55 @@ class ActiveCheckBoxTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=ActiveCheckBoxTest"); $this->verifyTextPresent("Active CheckBox Test"); - + $this->assertText("checkbox1_label", "CheckBox 1"); $this->assertText("checkbox2_label", "CheckBox 2"); $this->assertText('label1', 'Label 1'); - + $this->click("change_text1"); - $this->pause(500); + $this->pause(800); $this->assertText('checkbox1_label', 'Hello CheckBox 1'); - + $this->click("change_text2"); - $this->pause(500); + $this->pause(800); $this->assertText('checkbox2_label', 'CheckBox 2 World'); - + //check box 1 $this->click('change_checked1'); - $this->pause(500); + $this->pause(800); $this->assertChecked('checkbox1'); - + $this->click('change_checked1'); - $this->pause(500); + $this->pause(800); $this->assertNotChecked('checkbox1'); //check box 2 $this->click('change_checked2'); - $this->pause(500); + $this->pause(800); $this->assertChecked('checkbox2'); - + $this->click('change_checked2'); - $this->pause(500); + $this->pause(800); $this->assertNotChecked('checkbox2'); - + //click checkbox 1 $this->click("checkbox1"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1:Hello CheckBox 1 Checked"); - + $this->click("checkbox1"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1:Hello CheckBox 1 Not Checked"); - + //click checkbox 2 $this->click("checkbox2"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1:CheckBox 2 World Checked"); - + $this->click("checkbox2"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1:CheckBox 2 World Not Checked"); - + } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php index 5806a3ec..9d3ad9c3 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveDropDownListTestCase.php @@ -6,33 +6,33 @@ class ActiveDropDownListTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=ActiveDropDownList"); $this->assertTextPresent('Active Drop Down List Test Case'); - + $this->assertText("label1", "Label 1"); - + $this->click("button1"); - $this->pause(500); + $this->pause(800); $this->assertSelected("list1", "item 4"); - + $this->click("button2"); - $this->pause(500); + $this->pause(800); $this->assertEmptySelection("list1"); - + $this->click("button3"); - $this->pause(500); + $this->pause(800); $this->assertSelected("list1", "item 2"); - + // 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", "Selection 1: value 1"); + $this->select("list2", "value 1 - item 4"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Selection 2: value 1 - item 4"); - + $this->select("list1", "item 3"); - $this->pause(500); + $this->pause(800); $this->select("list2", "value 3 - item 5"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Selection 2: value 3 - item 5"); } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php index 53198806..6707a442 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php @@ -6,11 +6,11 @@ class ActiveHyperLinkTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=ActiveHyperLinkTest"); $this->assertTextPresent("Active HyperLink Test Case"); - + $this->assertText("link1", "Link 1"); - + $this->click("button1"); - $this->pause(500); + $this->pause(800); $this->assertText("link1", "Pradosoft.com"); } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveLinkButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveLinkButtonTestCase.php new file mode 100644 index 00000000..305a5c93 --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveLinkButtonTestCase.php @@ -0,0 +1,16 @@ +open("active-controls/index.php?page=ActiveLinkButtonTest"); + $this->verifyTextPresent("TActiveLinkButton Functional Test"); + $this->assertText("label1", "Label 1"); + $this->click("button2"); + $this->pause(800); + $this->assertText("label1", "Button 1 was clicked using callback!"); + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php new file mode 100644 index 00000000..24f8099d --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php @@ -0,0 +1,53 @@ +open("active-controls/index.php?page=ActiveListBoxTest"); + $this->assertTextPresent('Active List Box Functional Test'); + + $this->assertText("label1", "Label 1"); + + $this->click("button1"); + $this->pause(800); + $this->assertSelectedIndexes('list1', '1,2,3'); + + $this->click('button3'); + $this->pause(800); + $this->assertSelectedIndexes('list1', '0'); + + $this->click('button4'); + $this->pause(800); + $this->assertSelectedIndexes('list1', '4'); + + $this->click('button5'); + $this->pause(800); + $this->assertSelectedIndexes('list1', '1,4'); + + $this->click('button2'); + $this->pause(800); + $this->assertEmptySelection("list1"); + + $this->click('button7'); + $this->pause(800); + $this->click("button1"); + $this->pause(800); + $this->assertSelectedIndexes('list1', '3'); + + $this->click('button6'); + $this->pause(800); + $this->click("button1"); + $this->pause(800); + $this->assertSelectedIndexes('list1', '1,2,3'); + + $this->select("list1", "item 1"); + $this->pause(800); + $this->assertText('label1', 'Selection: value 1'); + + $this->addSelection("list1", "item 4"); + $this->pause(800); + $this->assertText('label1', 'Selection: value 1, value 4'); + } +} +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/ActivePanelTestCase.php b/tests/FunctionalTests/active-controls/tests/ActivePanelTestCase.php index a9fb6c4e..4c8fd3c6 100644 --- a/tests/FunctionalTests/active-controls/tests/ActivePanelTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActivePanelTestCase.php @@ -8,7 +8,7 @@ class ActivePanelTestCase extends SeleniumTestCase $this->verifyTextPresent("Active Panel replacement tests"); $this->assertTextNotPresent('Something lalala'); $this->click("div1"); - $this->pause(500); + $this->pause(800); $this->assertTextPresent("Something lalala"); } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonListTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonListTestCase.php new file mode 100644 index 00000000..386caa55 --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonListTestCase.php @@ -0,0 +1,47 @@ +open("active-controls/index.php?page=ActiveRadioButtonListTest"); + $this->verifyTextPresent("TActiveRadioButtonList Test Case"); + + $this->assertText("label1", "Label 1"); + + + $this->click("button3"); + $this->pause(800); + $this->assertCheckBoxes(array(0)); + + $this->click("button2"); + $this->pause(800); + $this->assertCheckBoxes(array()); + + $this->click("button4"); + $this->pause(800); + $this->assertCheckBoxes(array(4)); + + $this->click("list1_c2"); + $this->pause(800); + $this->assertText("label1", "Selection: value 3"); + + $this->click("list1_c3"); + $this->pause(800); + $this->assertText("label1", "Selection: value 4"); + + } + + function assertCheckBoxes($checks, $total = 5) + { + for($i = 0; $i < $total; $i++) + { + if(in_array($i, $checks)) + $this->assertChecked("list1_c{$i}"); + else + $this->assertNotChecked("list1_c{$i}"); + } + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php new file mode 100644 index 00000000..c21426cb --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php @@ -0,0 +1,54 @@ +open("active-controls/index.php?page=ActiveRadioButtonTest"); + $this->verifyTextPresent("Active Radio Button Test"); + $this->assertText('label1', 'Label 1'); + + $this->assertNotChecked('radio1'); + $this->assertNotChecked('radio2'); + $this->assertNotChecked('radio3'); + + $this->assertText('radio1_label', 'Radio Button 1'); + $this->assertText('radio2_label', 'Radio Button 2'); + $this->assertText('radio3_label', 'Radio Button 3'); + + $this->click('change_text1'); + $this->pause(800); + $this->assertText('radio1_label', 'Hello Radio Button 1'); + $this->assertText('radio2_label', 'Radio Button 2'); + $this->assertText('radio3_label', 'Radio Button 3'); + + $this->click('change_text2'); + $this->pause(800); + $this->assertText('radio1_label', 'Hello Radio Button 1'); + $this->assertText('radio2_label', 'Radio Button 2 World'); + $this->assertText('radio3_label', 'Radio Button 3'); + + $this->click('change_radio1'); + $this->pause(800); + $this->assertChecked('radio1'); + $this->assertNotChecked('radio2'); + $this->assertNotChecked('radio3'); + + $this->click('change_radio2'); + $this->pause(800); + $this->assertNotChecked('radio1'); + $this->assertChecked('radio2'); + $this->assertNotChecked('radio3'); + + + $this->click('radio3'); + $this->pause(800); + $this->assertNotChecked('radio1'); + $this->assertChecked('radio2'); + $this->assertChecked('radio3'); + $this->assertText('label1', 'Label 1:Radio Button 3 Checked'); + + + } +} +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php index f8b4cf55..cb1a6604 100644 --- a/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/AutoCompleteTestCase.php @@ -6,15 +6,15 @@ class AutoCompleteTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=AutoCompleteTest"); $this->verifyTextPresent("TAutoComplete Test"); - + $this->assertText("label1", "Label 1"); $this->type("textbox3", "Australia"); - $this->pause(500); + $this->pause(800); $this->click("heading"); //click somewhere else. - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1: Australia"); - + } } diff --git a/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php index 3a3b292c..e49eb513 100644 --- a/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php @@ -6,26 +6,26 @@ class CallbackAdapterTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=ControlAdapterTest"); $this->assertTextPresent('Control Adapter - State Tracking Tests'); - + $this->click('button2'); $this->assertAlert('ok'); - + $this->click('test6'); - $this->pause(500); + $this->pause(800); $this->click('test7'); - $this->pause(500); + $this->pause(800); $this->click('test8'); - $this->pause(500); + $this->pause(800); $this->click('test9'); - $this->pause(500); - + $this->pause(800); + $this->click('button1'); $this->assertAlert('haha!'); - + $this->click('button2'); $this->assertAlert('ok'); $this->assertAlert('baz!'); - + } } diff --git a/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php b/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php index d72499cf..39fa5ec9 100644 --- a/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php @@ -6,25 +6,25 @@ class CallbackOptionsTestCase extends SeleniumTestCase { $this->open("active-controls/index.php?page=CallbackOptionsTest"); $this->verifyTextPresent("TCallbackOptions Test"); - + $this->assertText("label1", "Label 1"); $this->assertText("label2", "Label 2"); $this->assertText("label3", "Label 3"); - + $this->click("button1"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Button 1 has returned"); $this->assertText("label2", "Label 2"); $this->assertText("label3", "Label 3"); $this->click("button2"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Button 1 has returned"); $this->assertText("label2", "Button 2 has returned"); $this->assertText("label3", "Label 3"); $this->click("button3"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Button 1 has returned"); $this->assertText("label2", "Button 2 has returned"); $this->assertText("label3", "Button 3 has returned"); diff --git a/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php index b927b3e9..9cde186a 100644 --- a/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php @@ -10,7 +10,7 @@ class CustomTemplateTestCase extends SeleniumTestCase $this->type('foo', 'Foo Bar!'); $this->click('button2'); - $this->pause(500); + $this->pause(800); $this->assertVisible('ctl1_ThePanel'); $this->assertTextPresent('Client ID: ctl1_ThePanel'); diff --git a/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php b/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php index 8d0cfb87..f19773ff 100644 --- a/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php @@ -9,18 +9,18 @@ class NestedActiveControlsTestCase extends SeleniumTestCase $this->assertText("label1", "Label 1"); $this->assertText("label2", "Label 2"); $this->assertTextNotPresent("Label 3"); - + $this->click("div1"); - $this->pause(500); + $this->pause(800); $this->assertTextPresent("Something lalala"); $this->assertText("label3", "Label 3"); - + $this->click("button1"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1: Button 1 Clicked"); $this->assertText("label2", "Label 2: Button 1 Clicked"); $this->assertText("label3", "Label 3: Button 1 Clicked"); - } + } } ?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php b/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php index de4cbc71..be0d0645 100644 --- a/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php @@ -13,14 +13,14 @@ class ReplaceContentTestCase extends SeleniumTestCase $this->type('content', 'something'); $this->click('btn_append'); - $this->pause(500); + $this->pause(800); $this->assertText('subpanel', 'Sub Panel something'); $this->assertText('panel1', 'Main Panel Sub Panel something'); $this->type('content', 'more'); $this->click('btn_prepend'); - $this->pause(500); + $this->pause(800); $this->assertText('subpanel', 'more Sub Panel something'); $this->assertText('panel1', 'Main Panel more Sub Panel something'); @@ -28,14 +28,14 @@ class ReplaceContentTestCase extends SeleniumTestCase $this->type('content', 'prado'); $this->click('btn_before'); - $this->pause(500); + $this->pause(800); $this->assertText('subpanel', 'more Sub Panel something'); $this->assertText('panel1', 'Main Panel pradomore Sub Panel something'); $this->type('content', ' php '); $this->click('btn_after'); - $this->pause(500); + $this->pause(800); $this->type('content', 'mauahahaha'); $this->click('btn_replace'); diff --git a/tests/FunctionalTests/active-controls/tests/TextBoxCallbackTestCase.php b/tests/FunctionalTests/active-controls/tests/TextBoxCallbackTestCase.php index 24cba49b..6e5a06be 100644 --- a/tests/FunctionalTests/active-controls/tests/TextBoxCallbackTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/TextBoxCallbackTestCase.php @@ -7,9 +7,9 @@ class TextBoxCallbackTestCase extends SeleniumTestCase $this->open("active-controls/index.php?page=ActiveTextBoxCallback"); $this->verifyTextPresent("ActiveTextBox Callback Test"); $this->assertText("label1", "Label 1"); - + $this->type("textbox1", "hello!"); - $this->pause(500); + $this->pause(800); $this->assertText("label1", "Label 1: hello!"); } } diff --git a/tests/FunctionalTests/active-controls/tests/TextBoxGroupValidationTestCase.php b/tests/FunctionalTests/active-controls/tests/TextBoxGroupValidationTestCase.php index b0950cbc..aff9a1b2 100644 --- a/tests/FunctionalTests/active-controls/tests/TextBoxGroupValidationTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/TextBoxGroupValidationTestCase.php @@ -16,7 +16,7 @@ class TextBoxGroupValidationTestCase extends SeleniumTestCase $this->assertNotVisible('validator1'); - $this->pause(500); + $this->pause(800); $this->assertValue('City', 'City: Sydney Zip: 2000'); } } -- cgit v1.2.3