diff options
author | wei <> | 2006-05-26 06:32:38 +0000 |
---|---|---|
committer | wei <> | 2006-05-26 06:32:38 +0000 |
commit | 73bd670dc8cdefbc4ab6cae56848bd14bdfb04c4 (patch) | |
tree | 80be0ac82432c6c92c5c40e92401afa8815c7847 /tests/FunctionalTests | |
parent | 9e8c47274843d78b68bf3515d26d78438e725528 (diff) |
Test case for #28
Diffstat (limited to 'tests/FunctionalTests')
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket28.page b/tests/FunctionalTests/tickets/protected/pages/Ticket28.page new file mode 100644 index 00000000..1d0002bb --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket28.page @@ -0,0 +1,5 @@ +<com:TContent ID="Content"> + <h2>Safari LinkButton Test</h2> + <com:TLinkButton ID="linkButton1" Text="Click Me" OnClick="linkButton1_Clicked" /> + <com:TLabel ID="label1" Text="Label 1" /> +</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket28.php b/tests/FunctionalTests/tickets/protected/pages/Ticket28.php new file mode 100644 index 00000000..7980119e --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket28.php @@ -0,0 +1,12 @@ +<?php + +class Ticket28 extends TPage +{ + function linkButton1_Clicked() + { + $this->label1->setText("Link Button 1 Clicked!"); + } +} + + +?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket28TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket28TestCase.php new file mode 100644 index 00000000..960dd2d8 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket28TestCase.php @@ -0,0 +1,15 @@ +<?php + +class Ticket28TestCase extends SeleniumTestCase +{ + + function test() + { + $this->open('tickets/index.php?page=Ticket28'); + $this->assertTextPresent('Label 1'); + $this->clickAndWait('link=Click Me'); + $this->assertTextPresent('Link Button 1 Clicked!'); + } +} + +?>
\ No newline at end of file |