summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests
diff options
context:
space:
mode:
authorwei <>2006-06-18 06:49:29 +0000
committerwei <>2006-06-18 06:49:29 +0000
commit2d88e84697fa4a36b7a2077b9e086aa2f9d3d67a (patch)
tree0c2c4e1cbe197018e264cf1de3ed6a2351771cfa /tests/FunctionalTests/active-controls/tests
parent313378ad2905fc07be00183b2acc61284c1c2c39 (diff)
Add ActiveCheckBox
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests')
-rw-r--r--tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php
new file mode 100644
index 00000000..30dda753
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/ActiveCheckBoxTestCase.php
@@ -0,0 +1,61 @@
+<?php
+
+class ActiveCheckBoxTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=ActiveCheckBoxTest");
+ $this->verifyTextPresent("Active CheckBox Test");
+
+ $this->assertText("checkbox1_label", "CheckBox 1");
+ $this->assertText("checkbox2_label", "CheckBox 2");
+ $this->assertText('label1', 'Label 1');
+
+ $this->click("change_text1");
+ $this->pause(500);
+ $this->assertText('checkbox1_label', 'Hello CheckBox 1');
+
+ $this->click("change_text2");
+ $this->pause(500);
+ $this->assertText('checkbox2_label', 'CheckBox 2 World');
+
+ //check box 1
+ $this->click('change_checked1');
+ $this->pause(500);
+ $this->assertChecked('checkbox1');
+
+ $this->click('change_checked1');
+ $this->pause(500);
+ $this->assertNotChecked('checkbox1');
+
+ //check box 2
+ $this->click('change_checked2');
+ $this->pause(500);
+ $this->assertChecked('checkbox2');
+
+ $this->click('change_checked2');
+ $this->pause(500);
+ $this->assertNotChecked('checkbox2');
+
+ //click checkbox 1
+ $this->click("checkbox1");
+ $this->pause(500);
+ $this->assertText("label1", "Label 1:Hello CheckBox 1 Checked");
+
+ $this->click("checkbox1");
+ $this->pause(500);
+ $this->assertText("label1", "Label 1:Hello CheckBox 1 Not Checked");
+
+ //click checkbox 2
+ $this->click("checkbox2");
+ $this->pause(500);
+ $this->assertText("label1", "Label 1:CheckBox 2 World Checked");
+
+ $this->click("checkbox2");
+ $this->pause(500);
+ $this->assertText("label1", "Label 1:CheckBox 2 World Not Checked");
+
+ }
+}
+
+?> \ No newline at end of file