diff options
author | wei <> | 2006-08-27 04:18:31 +0000 |
---|---|---|
committer | wei <> | 2006-08-27 04:18:31 +0000 |
commit | 887da1b3668499821f046665b461aeadb0a9fb2e (patch) | |
tree | 776f742ea179c823c90e7b81d2262a4344610eca /tests/FunctionalTests/active-controls/tests | |
parent | 1180e6486139a9c9662984367c4f624394e06f35 (diff) |
Adding TActiveImage and TActiveImageButton
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php | 17 | ||||
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/TimeTriggeredCallbackTestCase.php (renamed from tests/FunctionalTests/active-controls/tests/PeriodicCallbackTestCase.php) | 6 |
2 files changed, 20 insertions, 3 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php new file mode 100644 index 00000000..3d9937bd --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php @@ -0,0 +1,17 @@ +<?php
+
+class ActiveImageButtonTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=ActiveImageButtonTest");
+ $this->assertTextPresent("TActiveImageButton Functional Test");
+ $this->assertText("label1", "Label 1");
+ $this->click("image1");
+ $this->pause(800);
+ //unable to determine mouse position
+ $this->assertTextPresent("Image clicked at x=0, y=0");
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/PeriodicCallbackTestCase.php b/tests/FunctionalTests/active-controls/tests/TimeTriggeredCallbackTestCase.php index 2468aebf..675e3311 100644 --- a/tests/FunctionalTests/active-controls/tests/PeriodicCallbackTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/TimeTriggeredCallbackTestCase.php @@ -1,11 +1,11 @@ <?php -class PeriodicCallbackTestCase extends SeleniumTestCase +class TimeTriggeredCallbackTestCase extends SeleniumTestCase { function test() { - $this->open("active-controls/index.php?page=PeriodicCallbackTest"); - $this->verifyTextPresent("TPeriodicCallback + ViewState Tests"); + $this->open("active-controls/index.php?page=TimeTriggeredCallbackTest"); + $this->verifyTextPresent("TimeTriggeredCallback + ViewState Tests"); $this->assertText("label1", "ViewState Counter :"); |