summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php
diff options
context:
space:
mode:
authorxue <>2006-02-14 04:43:45 +0000
committerxue <>2006-02-14 04:43:45 +0000
commit751ae8c6b3fe5a47b0592a4dd7b719ec264486bc (patch)
tree07db809903a49ef561543970ad575a53d82f8cbf /tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php
parent9e17c72bc1c6f917f032b61a16907c81ac49f322 (diff)
Added 3 FT for TDataGrid demos.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php33
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&amp;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