summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2006-05-26 06:32:38 +0000
committerwei <>2006-05-26 06:32:38 +0000
commit73bd670dc8cdefbc4ab6cae56848bd14bdfb04c4 (patch)
tree80be0ac82432c6c92c5c40e92401afa8815c7847 /tests
parent9e8c47274843d78b68bf3515d26d78438e725528 (diff)
Test case for #28
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket28.page5
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket28.php12
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket28TestCase.php15
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