summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets')
-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