diff options
author | xue <> | 2006-02-14 04:43:45 +0000 |
---|---|---|
committer | xue <> | 2006-02-14 04:43:45 +0000 |
commit | 751ae8c6b3fe5a47b0592a4dd7b719ec264486bc (patch) | |
tree | 07db809903a49ef561543970ad575a53d82f8cbf /tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php | |
parent | 9e17c72bc1c6f917f032b61a16907c81ac49f322 (diff) |
Added 3 FT for TDataGrid demos.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php new file mode 100644 index 00000000..d20a7955 --- /dev/null +++ b/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php @@ -0,0 +1,33 @@ +<?php
+
+class DataGrid1TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample1&notheme=true", "");
+
+ // verify if all required texts are present
+ $this->verifyTextPresent('id','');
+ $this->verifyTextPresent('name','');
+ $this->verifyTextPresent('quantity','');
+ $this->verifyTextPresent('price','');
+ $this->verifyTextPresent('imported','');
+ $this->verifyTextPresent('ITN001','');
+ $this->verifyTextPresent('Motherboard','');
+ $this->verifyTextPresent('100','');
+ $this->verifyTextPresent('true','');
+ $this->verifyTextPresent('ITN019','');
+ $this->verifyTextPresent('Speaker','');
+ $this->verifyTextPresent('35','');
+ $this->verifyTextPresent('65','');
+ $this->verifyTextPresent('false','');
+
+ // verify specific table tags
+ $this->verifyElementPresent("ctl0_body_DataGrid");
+ $this->verifyAttribute("ctl0_body_DataGrid@rules","all");
+ $this->verifyAttribute("ctl0_body_DataGrid@cellpadding","2");
+ $this->verifyAttribute("ctl0_body_DataGrid@cellspacing","0");
+ }
+}
+
+?>
\ No newline at end of file |