diff options
author | tof <> | 2008-03-14 18:05:19 +0000 |
---|---|---|
committer | tof <> | 2008-03-14 18:05:19 +0000 |
commit | f2927a652e6e1afa8a22f472a4765dcc418d341e (patch) | |
tree | 9f8dc3d2ace29c538fe08e46b57139ca52439a00 /tests/FunctionalTests/tickets/tests | |
parent | 3d8d3f7169814c33c1dc829ef61cb3281d8c146c (diff) |
Added Testcase for #669
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r-- | tests/FunctionalTests/tickets/tests/Ticket669TestCase.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket669TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket669TestCase.php new file mode 100644 index 00000000..c3c2fa5d --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket669TestCase.php @@ -0,0 +1,48 @@ +<?php +class Ticket669TestCase extends SeleniumTestCase +{ + function test() + { + $base = 'ctl0_Content_'; + $this->open('tickets/index.php?page=Ticket669'); + $this->assertTitle("Verifying Ticket 669"); + + $this->assertTextPresent('1 - Test without callback'); + $this->assertValue($base.'tb1', 'ActiveTextBox'); + $this->assertValue($base.'tb2', 'TextBox in ActivePanel'); + + $this->click($base.'ctl4'); + $this->pause(800); + $this->assertValue($base.'tb1', 'ActiveTextBox +1'); + $this->assertValue($base.'tb2', 'TextBox in ActivePanel +1'); + + $this->click($base.'ctl1'); + $this->pause(800); + $this->assertTextPresent('2 - Test callback with 2nd ActivePanel'); + $this->assertValue($base.'tb3', 'ActiveTextBox'); + $this->assertValue($base.'tb4', 'TextBox in ActivePanel'); + $this->assertValue($base.'tb5', 'TextBox in ActivePanel'); + + $this->click($base.'ctl6'); + $this->pause(800); + + $this->assertValue($base.'tb3', 'ActiveTextBox +1'); + $this->assertValue($base.'tb4', 'TextBox in ActivePanel +1'); + $this->assertValue($base.'tb5', 'TextBox in ActivePanel +1'); + + $this->click($base.'ctl2'); + $this->pause(800); + $this->assertTextPresent('3 - Test callback without 2nd ActivePanel'); + $this->assertValue($base.'tb6', 'ActiveTextBox'); + $this->assertValue($base.'tb7', 'TextBox in Panel'); + + $this->click($base.'ctl8'); + $this->pause(800); + + $this->assertValue($base.'tb6', 'ActiveTextBox +1'); + $this->assertValue($base.'tb7', 'TextBox in Panel +1'); + + } + +} +?>
\ No newline at end of file |