summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/framework
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/framework')
-rw-r--r--tests/FunctionalTests/framework/Demos/testControls.php16
-rw-r--r--tests/FunctionalTests/framework/Demos/testHangMan.php32
-rw-r--r--tests/FunctionalTests/framework/IndexPage.tpl13
-rw-r--r--tests/FunctionalTests/framework/Web/UI/config.xml7
-rw-r--r--tests/FunctionalTests/framework/Web/UI/testTButton.php23
-rw-r--r--tests/FunctionalTests/framework/Web/UI/testTButton.tpl7
-rw-r--r--tests/FunctionalTests/framework/Web/config.xml5
-rw-r--r--tests/FunctionalTests/framework/application.xml12
-rw-r--r--tests/FunctionalTests/framework/config.xml6
9 files changed, 0 insertions, 121 deletions
diff --git a/tests/FunctionalTests/framework/Demos/testControls.php b/tests/FunctionalTests/framework/Demos/testControls.php
deleted file mode 100644
index 49f8e99e..00000000
--- a/tests/FunctionalTests/framework/Demos/testControls.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-class testControls extends SeleniumTestCase
-{
- function setup()
- {
- $this->open('../../demos/controls/index.php');
- }
-
- function testControlSamples()
- {
- $this->assertTextPresent("Welcome! Guest");
- $this->clickAndWait('//input[@value="Toggle Button"]');
- $this->assertTextPresent("Login");
- }
-} \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/Demos/testHangMan.php b/tests/FunctionalTests/framework/Demos/testHangMan.php
deleted file mode 100644
index e6bc8c94..00000000
--- a/tests/FunctionalTests/framework/Demos/testHangMan.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-
-class testHangMan extends SeleniumTestCase
-{
- function setup()
- {
- $this->open('../../demos/hangman/index.php');
- }
-
- function testHangManGame()
- {
- $this->assertLocation('hangman/index.php');
- $this->assertTextPresent('Prado Hangman Game');
-
- //use xpath to select input with value "HardLevel",
- //i.e the radio button with value "HardLevel"
- $this->click('//input[@value="HardLevel"]');
- $this->clickAndWait('//input[@value="Play!"]');
-
- //try 3 alphabets that sure doesn't exists
- $this->clickAndWait('link=X');
- $this->assertTextPresent('made 1 bad guesses');
-
- $this->clickAndWait('link=J');
- $this->assertTextPresent('made 2 bad guesses');
-
- $this->clickAndWait('link=Q');
- $this->assertTextPresent('You Lose!');
- }
-}
-
-?> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/IndexPage.tpl b/tests/FunctionalTests/framework/IndexPage.tpl
deleted file mode 100644
index 733c495e..00000000
--- a/tests/FunctionalTests/framework/IndexPage.tpl
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Functional Tests</title>
-</head>
-
-<body>
-<h1>Functional Test Pages</h1>
-</body>
-</html> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/Web/UI/config.xml b/tests/FunctionalTests/framework/Web/UI/config.xml
deleted file mode 100644
index 7e71f4aa..00000000
--- a/tests/FunctionalTests/framework/Web/UI/config.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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
deleted file mode 100644
index 09ba28f6..00000000
--- a/tests/FunctionalTests/framework/Web/UI/testTButton.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?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
deleted file mode 100644
index ac051f28..00000000
--- a/tests/FunctionalTests/framework/Web/UI/testTButton.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-<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
deleted file mode 100644
index f9533de1..00000000
--- a/tests/FunctionalTests/framework/Web/config.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<configuration>
-
-</configuration> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/application.xml b/tests/FunctionalTests/framework/application.xml
deleted file mode 100644
index 16377248..00000000
--- a/tests/FunctionalTests/framework/application.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<application id="functional" mode="Debug">
- <paths>
- <alias id="Tests" path="." />
- </paths>
- <!-- modules configured and loaded for all services -->
- <services>
- <!-- page service, BasePath is required -->
- <service id="page" BasePath="Tests" DefaultPage="IndexPage" />
- </services>
-</application> \ No newline at end of file
diff --git a/tests/FunctionalTests/framework/config.xml b/tests/FunctionalTests/framework/config.xml
deleted file mode 100644
index 918c49df..00000000
--- a/tests/FunctionalTests/framework/config.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <pages>
- <page id="IndexPage" class="TPage" TemplateFile="Tests.IndexPage" />
- </pages>
-</configuration> \ No newline at end of file