From 2fbf5192a27fa9f7680fdc6b8b8fc54a3638d50f Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Feb 2007 22:39:56 +0000 Subject: fixed test cases for datagrid. --- .../quickstart/Controls/DataGrid2TestCase.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid2TestCase.php') diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid2TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid2TestCase.php index 919200ff..ae810bdc 100644 --- a/tests/FunctionalTests/quickstart/Controls/DataGrid2TestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/DataGrid2TestCase.php @@ -26,11 +26,11 @@ class DataGrid2TestCase extends SeleniumTestCase $this->verifyTextPresent("\$38.49",''); // verify in-stock - $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl6@checked','regexp:true|checked'); - $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl6@disabled','regexp:true|disabled'); - $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl6@checked','regexp:true|checked'); - $this->verifyAttribute('ctl0_body_DataGrid_ctl6_ctl6@checked','regexp:false|null'); - $this->verifyAttribute('ctl0_body_DataGrid_ctl6_ctl6@disabled','regexp:true|disabled'); + $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl5@checked','regexp:true|checked'); + $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl5@disabled','regexp:true|disabled'); + $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl5@checked','regexp:true|checked'); + $this->verifyAttribute('ctl0_body_DataGrid_ctl6_ctl5@checked','regexp:false|null'); + $this->verifyAttribute('ctl0_body_DataGrid_ctl6_ctl5@disabled','regexp:true|disabled'); // verify ratings //$this->verifyElementPresent("//img[@src='images/star5.gif']",''); @@ -40,9 +40,9 @@ class DataGrid2TestCase extends SeleniumTestCase $this->clickAndWait("//input[@name='ctl0\$body\$ctl1\$c0' and @value='Book Title']", ""); $this->verifyTextNotPresent('Head First Design Patterns',''); $this->clickAndWait("//input[@name='ctl0\$body\$ctl1\$c3' and @value='In-stock']", ""); - $this->verifyElementNotPresent('ctl0_body_DataGrid_ctl1_ctl6',''); + $this->verifyElementNotPresent('ctl0_body_DataGrid_ctl1_ctl5',''); $this->clickAndWait("//input[@name='ctl0\$body\$ctl1\$c3' and @value='In-stock']", ""); - $this->verifyElementPresent('ctl0_body_DataGrid_ctl1_ctl6',''); + $this->verifyElementPresent('ctl0_body_DataGrid_ctl1_ctl5',''); $this->clickAndWait("//input[@name='ctl0\$body\$ctl1\$c0' and @value='Book Title']", ""); $this->verifyTextPresent('Head First Design Patterns',''); } -- cgit v1.2.3