diff options
author | xue <> | 2006-02-14 14:39:23 +0000 |
---|---|---|
committer | xue <> | 2006-02-14 14:39:23 +0000 |
commit | 45dc5224f9b2eb5f9c24d4eecda2d8a1f6ac5d8c (patch) | |
tree | 212a7e02a2425506f082901b828723d7c51efe99 /tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php | |
parent | 8b40c8f460b1f6b3cdfa6aef0e7845cefe2fa5be (diff) |
Added changing page size to the datagrid demo and two more FT.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php new file mode 100644 index 00000000..36810a8d --- /dev/null +++ b/tests/FunctionalTests/quickstart/Controls/DataGrid4TestCase.php @@ -0,0 +1,30 @@ +<?php
+
+class DataGrid4TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample4&notheme=true", "");
+
+ // 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_ctl6@checked','regexp:true|checked');
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl6@disabled','regexp:true|disabled');
+
+ // verify sorting
+ $this->clickAndWait("link=Book Title", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl6@checked','regexp:false|null');
+ $this->clickAndWait("link=Publisher", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl6_ctl6@checked','regexp:false|null');
+ $this->clickAndWait("link=Price", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl2_ctl6@checked','regexp:false|null');
+ $this->clickAndWait("link=In-stock", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl1_ctl6@checked','regexp:false|null');
+ $this->clickAndWait("link=Rating", "");
+ $this->verifyAttribute('ctl0_body_DataGrid_ctl4_ctl6@checked','regexp:false|null');
+ }
+}
+
+?>
\ No newline at end of file |