diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php new file mode 100644 index 00000000..3a3b292c --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php @@ -0,0 +1,32 @@ +<?php + +class CallbackAdapterTestCase extends SeleniumTestCase +{ + function test() + { + $this->open("active-controls/index.php?page=ControlAdapterTest"); + $this->assertTextPresent('Control Adapter - State Tracking Tests'); + + $this->click('button2'); + $this->assertAlert('ok'); + + $this->click('test6'); + $this->pause(500); + $this->click('test7'); + $this->pause(500); + $this->click('test8'); + $this->pause(500); + $this->click('test9'); + $this->pause(500); + + $this->click('button1'); + $this->assertAlert('haha!'); + + $this->click('button2'); + $this->assertAlert('ok'); + $this->assertAlert('baz!'); + + } +} + +?>
\ No newline at end of file |