summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php
diff options
context:
space:
mode:
authorxue <>2006-02-13 22:12:50 +0000
committerxue <>2006-02-13 22:12:50 +0000
commit3e60cbad4b79301ae086ecacbdc63af333532a43 (patch)
treeaaa72887f9e5eaf94305c8a08a07f7a735c378ac /tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php
parent98e796c1a4f0bda1abc4df7e08df9ddb4f6e50af (diff)
Added repeater functional tests.
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php b/tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php
new file mode 100644
index 00000000..08a8c3da
--- /dev/null
+++ b/tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php
@@ -0,0 +1,37 @@
+<?php
+
+class Repeater2TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TRepeater.Sample2&amp;notheme=true", "");
+
+ // verify if all required texts are present
+ $this->verifyTextPresent('North','');
+ $this->verifyTextPresent('John','');
+ $this->verifyTextPresent('Developer','');
+ $this->verifyTextPresent('South','');
+ $this->verifyTextPresent('Carter','');
+ $this->verifyTextPresent('Program Manager','');
+
+ // verify specific table tags
+ $this->verifyElementPresent("//table[@cellspacing='1']");
+ $this->verifyElementPresent("//td[@id='ctl0_body_Repeater_ctl1_Cell' and contains(text(),'North')]","");
+ $this->verifyElementPresent("//td[@id='ctl0_body_Repeater_ctl1_Cell']","");
+ $this->verifyElementPresent("//td[@id='ctl0_body_Repeater_ctl2_Cell']","");
+ $this->verifyElementPresent("//td[@id='ctl0_body_Repeater_ctl3_Cell']","");
+ $this->verifyElementPresent("//td[@id='ctl0_body_Repeater_ctl4_Cell']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl1_Repeater2_ctl1_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl1_Repeater2_ctl2_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl1_Repeater2_ctl3_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl2_Repeater2_ctl1_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl2_Repeater2_ctl2_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl2_Repeater2_ctl3_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl3_Repeater2_ctl1_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl3_Repeater2_ctl2_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl4_Repeater2_ctl1_Row']","");
+ $this->verifyElementPresent("//tr[@id='ctl0_body_Repeater_ctl4_Repeater2_ctl2_Row']","");
+ }
+}
+
+?> \ No newline at end of file