summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php102
1 files changed, 51 insertions, 51 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php
index f084ff40..d342c791 100644
--- a/tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/DataGrid3TestCase.php
@@ -1,52 +1,52 @@
-<?php
-
-class DataGrid3TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample3&amp;notheme=true&amp;lang=en", "");
-
- // verify the 2nd row of data
- $this->verifyTextPresent("Design Patterns: Elements of Reusable Object-Oriented Software", "");
- $this->verifyTextPresent("Addison-Wesley Professional", "");
- $this->verifyTextPresent("$47.04", "");
- $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@checked','regexp:true|checked');
- $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@disabled','regexp:true|disabled');
- //$this->verifyElementPresent("//img[@src='images/star5.gif']",'');
-
- // edit the 2nd row
- $this->clickAndWait("id=ctl0_body_DataGrid_ctl2_ctl7", "");
- $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl1", "Design Pattern: Elements of Reusable Object-Oriented Software");
- $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl3", "Addison Wesley Professional");
- $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl5", "\$57.04");
- $this->click("//input[@name='ctl0\$body\$DataGrid\$ctl2\$ctl7']", "");
- $this->select("ctl0\$body\$DataGrid\$ctl2\$ctl9", "label=1");
- $this->clickAndWait("link=Save", "");
-
- // verify the 2nd row is saved
- $this->verifyTextPresent("Design Pattern: Elements of Reusable Object-Oriented Software", "");
- $this->verifyTextPresent("Addison Wesley Professional", "");
- $this->verifyTextPresent("$57.04", "");
- $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@checked','regexp:false|null');
- $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@disabled','regexp:true|disabled');
- //$this->verifyElementPresent("//img[@src='images/star1.gif']",'');
-
- // verify cancel editting the 3rd row
- $this->clickAndWait("id=ctl0_body_DataGrid_ctl3_ctl7", "");
- $this->clickAndWait("link=Cancel", "");
- $this->verifyTextPresent("Design Patterns Explained : A New Perspective on Object-Oriented Design", "");
-
- // verify deleting
- $this->clickAndWait("id=ctl0_body_DataGrid_ctl3_ctl9", "");
- $this->verifyConfirmation("Are you sure?");
- $this->verifyTextNotPresent("Design Patterns Explained : A New Perspective on Object-Oriented Design", "");
-
- $this->verifyTextPresent("Extreme Programming Explained : Embrace Change",'');
- $this->chooseCancelOnNextConfirmation();
- $this->click("id=ctl0_body_DataGrid_ctl6_ctl9", "");
- $this->verifyConfirmation("Are you sure?");
- $this->verifyTextPresent("Extreme Programming Explained : Embrace Change",'');
- }
-}
-
+<?php
+
+class DataGrid3TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample3&amp;notheme=true&amp;lang=en", "");
+
+ // verify the 2nd row of data
+ $this->verifyTextPresent("Design Patterns: Elements of Reusable Object-Oriented Software", "");
+ $this->verifyTextPresent("Addison-Wesley Professional", "");
+ $this->verifyTextPresent("$47.04", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@checked','regexp:true|checked');
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@disabled','regexp:true|disabled');
+ //$this->verifyElementPresent("//img[@src='images/star5.gif']",'');
+
+ // edit the 2nd row
+ $this->clickAndWait("id=ctl0_body_DataGrid_ctl2_ctl7", "");
+ $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl1", "Design Pattern: Elements of Reusable Object-Oriented Software");
+ $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl3", "Addison Wesley Professional");
+ $this->type("ctl0\$body\$DataGrid\$ctl2\$ctl5", "\$57.04");
+ $this->click("//input[@name='ctl0\$body\$DataGrid\$ctl2\$ctl7']", "");
+ $this->select("ctl0\$body\$DataGrid\$ctl2\$ctl9", "label=1");
+ $this->clickAndWait("link=Save", "");
+
+ // verify the 2nd row is saved
+ $this->verifyTextPresent("Design Pattern: Elements of Reusable Object-Oriented Software", "");
+ $this->verifyTextPresent("Addison Wesley Professional", "");
+ $this->verifyTextPresent("$57.04", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@checked','regexp:false|null');
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl4@disabled','regexp:true|disabled');
+ //$this->verifyElementPresent("//img[@src='images/star1.gif']",'');
+
+ // verify cancel editting the 3rd row
+ $this->clickAndWait("id=ctl0_body_DataGrid_ctl3_ctl7", "");
+ $this->clickAndWait("link=Cancel", "");
+ $this->verifyTextPresent("Design Patterns Explained : A New Perspective on Object-Oriented Design", "");
+
+ // verify deleting
+ $this->clickAndWait("id=ctl0_body_DataGrid_ctl3_ctl9", "");
+ $this->verifyConfirmation("Are you sure?");
+ $this->verifyTextNotPresent("Design Patterns Explained : A New Perspective on Object-Oriented Design", "");
+
+ $this->verifyTextPresent("Extreme Programming Explained : Embrace Change",'');
+ $this->chooseCancelOnNextConfirmation();
+ $this->click("id=ctl0_body_DataGrid_ctl6_ctl9", "");
+ $this->verifyConfirmation("Are you sure?");
+ $this->verifyTextPresent("Extreme Programming Explained : Embrace Change",'');
+ }
+}
+
?> \ No newline at end of file