diff options
author | wei <> | 2006-06-22 11:55:46 +0000 |
---|---|---|
committer | wei <> | 2006-06-22 11:55:46 +0000 |
commit | 817da66e1cb3548f728db9ff4a96e783ed7522b5 (patch) | |
tree | 6a994ae26d05054a9becaa82d8839cc778c56113 /tests/FunctionalTests/active-controls/tests | |
parent | 99ea5b7b4b90d0298f47223c0fc832b30c1903eb (diff) |
Update callback adapter
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests')
-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 |