summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/framework/Web')
-rw-r--r--tests/FunctionalTests/framework/Web/UI/config.xml7
-rw-r--r--tests/FunctionalTests/framework/Web/UI/testTButton.php24
-rw-r--r--tests/FunctionalTests/framework/Web/UI/testTButton.tpl7
-rw-r--r--tests/FunctionalTests/framework/Web/config.xml5
4 files changed, 43 insertions, 0 deletions
diff --git a/tests/FunctionalTests/framework/Web/UI/config.xml b/tests/FunctionalTests/framework/Web/UI/config.xml
new file mode 100644
index 00000000..7e71f4aa
--- /dev/null
+++ b/tests/FunctionalTests/framework/Web/UI/config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+ <pages>
+ <page id="testTButton" class="testTButton" />
+ </pages>
+</configuration> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/Web/UI/testTButton.php b/tests/FunctionalTests/framework/Web/UI/testTButton.php
new file mode 100644
index 00000000..eb4c4987
--- /dev/null
+++ b/tests/FunctionalTests/framework/Web/UI/testTButton.php
@@ -0,0 +1,24 @@
+<?php
+
+class testTButton extends TPage
+{
+
+}
+
+
+class testTButtonCase extends SeleniumTestCase
+{
+ function setup()
+ {
+ $this->initPage(__FILE__);
+ $this->open($this->Page->Request->TestUrl);
+ }
+
+ function testButtonClick()
+ {
+ $this->assertTextPresent("TButton Functional Test");
+ $this->click($this->Page->button1);
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/Web/UI/testTButton.tpl b/tests/FunctionalTests/framework/Web/UI/testTButton.tpl
new file mode 100644
index 00000000..ac051f28
--- /dev/null
+++ b/tests/FunctionalTests/framework/Web/UI/testTButton.tpl
@@ -0,0 +1,7 @@
+<com:TForm>
+
+ <h1>TButton Functional Test</h1>
+
+ <com:TButton ID="button1" Text="Click Me!" />
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/Web/config.xml b/tests/FunctionalTests/framework/Web/config.xml
new file mode 100644
index 00000000..f9533de1
--- /dev/null
+++ b/tests/FunctionalTests/framework/Web/config.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+
+</configuration> \ No newline at end of file