diff options
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket535TestCase.php')
-rw-r--r-- | tests/FunctionalTests/tickets/tests/Ticket535TestCase.php | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php index 26f70803..222f4b7b 100644 --- a/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php @@ -1,36 +1,36 @@ -<?php
-
-class Ticket535TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket535');
- $this->assertTitle("Verifying Ticket 535");
-
- $this->assertText("{$base}label1", "Label 1");
-
- $this->click("{$base}radio1");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
-
- $this->click("{$base}radio2");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
-
- $this->click("{$base}bad_radio1");
- $this->click("{$base}button2");
- $this->pause(800);
- $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
-
- $this->click("{$base}bad_radio2");
- $this->click("{$base}button2");
- $this->pause(800);
- $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
- }
-
-}
-
+<?php + +class Ticket535TestCase extends SeleniumTestCase +{ + function test() + { + $base = 'ctl0_Content_'; + $this->open('tickets/index.php?page=Ticket535'); + $this->assertTitle("Verifying Ticket 535"); + + $this->assertText("{$base}label1", "Label 1"); + + $this->click("{$base}radio1"); + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}'); + + $this->click("{$base}radio2"); + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}'); + + $this->click("{$base}bad_radio1"); + $this->click("{$base}button2"); + $this->pause(800); + $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}'); + + $this->click("{$base}bad_radio2"); + $this->click("{$base}button2"); + $this->pause(800); + $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}'); + } + +} + ?>
\ No newline at end of file |