diff options
author | wei <> | 2006-01-06 04:37:22 +0000 |
---|---|---|
committer | wei <> | 2006-01-06 04:37:22 +0000 |
commit | 3b11f3555426a50664e130148fa37e18b8098e28 (patch) | |
tree | d1bcba66c8d2fc0a7cfbbde92975b9e972fa7aab /tests/FunctionalTests/framework/Demos | |
parent | 2d5b96ba9878ec36df7bb2af3493bb771c85b032 (diff) |
Diffstat (limited to 'tests/FunctionalTests/framework/Demos')
-rw-r--r-- | tests/FunctionalTests/framework/Demos/testControls.php | 16 | ||||
-rw-r--r-- | tests/FunctionalTests/framework/Demos/testHangMan.php | 32 |
2 files changed, 0 insertions, 48 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 |