summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php')
-rw-r--r--tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php
new file mode 100644
index 00000000..c21426cb
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/ActiveRadioButtonTestCase.php
@@ -0,0 +1,54 @@
+<?php
+
+class ActiveRadioButtonTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=ActiveRadioButtonTest");
+ $this->verifyTextPresent("Active Radio Button Test");
+ $this->assertText('label1', 'Label 1');
+
+ $this->assertNotChecked('radio1');
+ $this->assertNotChecked('radio2');
+ $this->assertNotChecked('radio3');
+
+ $this->assertText('radio1_label', 'Radio Button 1');
+ $this->assertText('radio2_label', 'Radio Button 2');
+ $this->assertText('radio3_label', 'Radio Button 3');
+
+ $this->click('change_text1');
+ $this->pause(800);
+ $this->assertText('radio1_label', 'Hello Radio Button 1');
+ $this->assertText('radio2_label', 'Radio Button 2');
+ $this->assertText('radio3_label', 'Radio Button 3');
+
+ $this->click('change_text2');
+ $this->pause(800);
+ $this->assertText('radio1_label', 'Hello Radio Button 1');
+ $this->assertText('radio2_label', 'Radio Button 2 World');
+ $this->assertText('radio3_label', 'Radio Button 3');
+
+ $this->click('change_radio1');
+ $this->pause(800);
+ $this->assertChecked('radio1');
+ $this->assertNotChecked('radio2');
+ $this->assertNotChecked('radio3');
+
+ $this->click('change_radio2');
+ $this->pause(800);
+ $this->assertNotChecked('radio1');
+ $this->assertChecked('radio2');
+ $this->assertNotChecked('radio3');
+
+
+ $this->click('radio3');
+ $this->pause(800);
+ $this->assertNotChecked('radio1');
+ $this->assertChecked('radio2');
+ $this->assertChecked('radio3');
+ $this->assertText('label1', 'Label 1:Radio Button 3 Checked');
+
+
+ }
+}
+?> \ No newline at end of file