From 99458807b73ff35b07521697f806b4654d1ec8fd Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 8 Jun 2006 23:56:38 +0000 Subject: ensureChildControls() is now invoked in TControl::initRecursive --- tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php | 2 +- tests/FunctionalTests/quickstart/Controls/Wizard2TestCase.php | 2 +- tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php | 10 +++++----- tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php b/tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php index ea071612..8b2da6f3 100644 --- a/tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php @@ -14,7 +14,7 @@ class Wizard1TestCase extends SeleniumTestCase $this->verifyVisible('ctl0_body_Wizard1_SideBarList_ctl0_SideBarButton'); $this->verifyAttribute('ctl0_body_Wizard1_SideBarList_ctl1_SideBarButton@disabled','regexp:true|disabled'); $this->select('ctl0$body$Wizard1$DropDownList1', "label=Purple"); - $this->clickAndWait('ctl0$body$Wizard1$ctl8$ctl1'); + $this->clickAndWait('ctl0$body$Wizard1$ctl6$ctl1'); // step 2 $this->verifyTextPresent('Your favorite color is: Purple'); diff --git a/tests/FunctionalTests/quickstart/Controls/Wizard2TestCase.php b/tests/FunctionalTests/quickstart/Controls/Wizard2TestCase.php index ca94bb19..04d448cb 100644 --- a/tests/FunctionalTests/quickstart/Controls/Wizard2TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/Wizard2TestCase.php @@ -14,7 +14,7 @@ class Wizard2TestCase extends SeleniumTestCase $this->verifyVisible('ctl0_body_Wizard1_SideBarList_ctl0_SideBarButton'); $this->verifyAttribute('ctl0_body_Wizard1_SideBarList_ctl1_SideBarButton@disabled','regexp:true|disabled'); $this->select('ctl0$body$Wizard1$DropDownList1', "label=Blue"); - $this->clickAndWait('ctl0$body$Wizard1$ctl8$ctl1'); + $this->clickAndWait('ctl0$body$Wizard1$ctl6$ctl1'); // step 2 $this->verifyTextPresent('Your favorite color is: Blue'); diff --git a/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php b/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php index 807e7dc6..855ed545 100644 --- a/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/Wizard3TestCase.php @@ -12,15 +12,15 @@ class Wizard3TestCase extends SeleniumTestCase $this->verifyTextPresent('A Mini Survey'); $this->verifyTextPresent('PRADO QuickStart Sample'); $this->click('ctl0_body_Wizard3_StudentCheckBox'); - $this->clickAndWait('ctl0$body$Wizard3$ctl8$ctl0'); + $this->clickAndWait('ctl0$body$Wizard3$ctl4$ctl0'); // step 2 $this->select('ctl0$body$Wizard3$DropDownList11', "label=Chemistry"); - $this->clickAndWait('ctl0$body$Wizard3$ctl9$ctl1'); + $this->clickAndWait('ctl0$body$Wizard3$ctl5$ctl1'); // step 3 $this->select('ctl0$body$Wizard3$DropDownList22', "label=Tennis"); - $this->clickAndWait('ctl0$body$Wizard3$ctl10$ctl1'); + $this->clickAndWait('ctl0$body$Wizard3$ctl6$ctl1'); // step 4 $this->verifyTextPresent('You are a college student'); @@ -31,11 +31,11 @@ class Wizard3TestCase extends SeleniumTestCase $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TWizard.Sample3&notheme=true", ""); // step 1 - $this->clickAndWait('ctl0$body$Wizard3$ctl8$ctl0'); + $this->clickAndWait('ctl0$body$Wizard3$ctl4$ctl0'); // step 3 $this->select('ctl0$body$Wizard3$DropDownList22', "label=Baseball"); - $this->clickAndWait('ctl0$body$Wizard3$ctl10$ctl1'); + $this->clickAndWait('ctl0$body$Wizard3$ctl6$ctl1'); // step 4 $this->verifyTextNotPresent('You are a college student'); diff --git a/tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php b/tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php index e25ce86d..b1df9213 100644 --- a/tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php @@ -14,11 +14,11 @@ class Wizard5TestCase extends SeleniumTestCase $this->verifyVisible('ctl0_body_Wizard1_SideBarList_ctl1_SideBarButton'); $this->verifyAttribute('ctl0_body_Wizard1_SideBarList_ctl2_SideBarButton@disabled','regexp:true|disabled'); $this->select('ctl0_body_Wizard1_DropDownList1', "label=Cyan"); - $this->clickAndWait('ctl0$body$Wizard1$ctl6$ctl0'); + $this->clickAndWait('ctl0$body$Wizard1$ctl4$ctl0'); // step 2 $this->select('ctl0_body_Wizard1_Step2_DropDownList2','label=Football'); - $this->clickAndWait('ctl0$body$Wizard1$ctl8$ctl0'); + $this->clickAndWait('ctl0$body$Wizard1$ctl6$ctl0'); // step 1 $this->verifySelected('ctl0_body_Wizard1_DropDownList1','label=Cyan'); @@ -26,7 +26,7 @@ class Wizard5TestCase extends SeleniumTestCase // step 2 $this->verifySelected('ctl0_body_Wizard1_Step2_DropDownList2','label=Football'); - $this->clickAndWait('ctl0$body$Wizard1$ctl8$ctl1'); + $this->clickAndWait('ctl0$body$Wizard1$ctl6$ctl1'); // step 3 $this->verifyTextPresent('Your favorite color is: Cyan'); -- cgit v1.2.3