summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-07-25 15:56:06 +0000
committerxue <>2007-07-25 15:56:06 +0000
commit78d64a2fb44d70c7c38398d5fedc6f2b67a2b375 (patch)
tree79782b876ab44ddc31fb925b2da7231177a0ec0b
parent255af5dfc28846cbafb43b9738a288f21f76aa2e (diff)
Added FT testcase for TTabPanel.
-rw-r--r--.gitattributes1
-rw-r--r--tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php49
2 files changed, 50 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index e0d73d89..5b068d73 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2545,6 +2545,7 @@ tests/FunctionalTests/quickstart/Controls/Repeater1TestCase.php -text
tests/FunctionalTests/quickstart/Controls/Repeater2TestCase.php -text
tests/FunctionalTests/quickstart/Controls/Repeater3TestCase.php -text
tests/FunctionalTests/quickstart/Controls/StatementsTestCase.php -text
+tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php -text
tests/FunctionalTests/quickstart/Controls/TableTestCase.php -text
tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php -text
tests/FunctionalTests/quickstart/Controls/Wizard1TestCase.php -text
diff --git a/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php
new file mode 100644
index 00000000..77143b78
--- /dev/null
+++ b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php
@@ -0,0 +1,49 @@
+<?php
+
+class TabPanelTestCase extends SeleniumTestCase
+{
+ function test ()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TTabPanel.Home&amp;notheme=true", "");
+
+ $this->verifyTitle("PRADO QuickStart Sample", "");
+
+ // verify initial visibility
+ $this->verifyNotVisible('ctl0_body_View1'); // view 1
+ $this->verifyVisible('ctl0_body_View2'); // view 2
+ $this->verifyNotVisible('ctl0_body_ctl2'); // view 3
+
+ // switching to the first view
+ $this->click('ctl0_body_View1_0');
+ $this->pause(500);
+ $this->verifyVisible('ctl0_body_View1'); // view 1
+ $this->verifyNotVisible('ctl0_body_View2'); // view 2
+ $this->verifyNotVisible('ctl0_body_ctl2'); // view 3
+ $this->verifyNotVisible('ctl0_body_View11'); // view 11
+ $this->verifyVisible('ctl0_body_View21'); // view 21
+
+ // switching to View11
+ $this->click('ctl0_body_View11_0');
+ $this->pause(500);
+ $this->verifyVisible('ctl0_body_View1'); // view 1
+ $this->verifyNotVisible('ctl0_body_View2'); // view 2
+ $this->verifyNotVisible('ctl0_body_ctl2'); // view 3
+ $this->verifyVisible('ctl0_body_View11'); // view 11
+ $this->verifyNotVisible('ctl0_body_View21'); // view 21
+
+ // switching to the third view
+ $this->click('ctl0_body_ctl2_0');
+ $this->pause(500);
+ $this->verifyNotVisible('ctl0_body_View1'); // view 1
+ $this->verifyNotVisible('ctl0_body_View2'); // view 2
+ $this->verifyVisible('ctl0_body_ctl2'); // view 3
+
+ // submit: check if the visibility is kept
+ $this->clickAndWait("//input[@type='submit' and @value='Submit']", "");
+ $this->verifyNotVisible('ctl0_body_View1'); // view 1
+ $this->verifyNotVisible('ctl0_body_View2'); // view 2
+ $this->verifyVisible('ctl0_body_ctl2'); // view 3
+ }
+}
+
+?> \ No newline at end of file