diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php')
-rw-r--r-- | tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php index b60a8047..66417eda 100644 --- a/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/TabPanelTestCase.php @@ -1,49 +1,49 @@ -<?php
-
-class TabPanelTestCase extends SeleniumTestCase
-{
- function test ()
- {
- $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TTabPanel.Home&notheme=true&lang=en", "");
-
- $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
- }
-}
-
+<?php + +class TabPanelTestCase extends SeleniumTestCase +{ + function test () + { + $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TTabPanel.Home&notheme=true&lang=en", ""); + + $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 |