diff options
Diffstat (limited to 'tests/FunctionalTests')
3 files changed, 51 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket876.page b/tests/FunctionalTests/tickets/protected/pages/Ticket876.page new file mode 100644 index 00000000..af673461 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket876.page @@ -0,0 +1,17 @@ +<com:TContent ID="Content"> + + <com:TButton ID="Button" Text="Set empty CssUrl" OnClick="onSetEmptyCssUrl"/> + + <com:TTabPanel ID="TabPanel"> + <com:TTabView Caption="View 1"> + content for view 1 + </com:TTabView> + <com:TTabView Caption="View 2"> + content for view 2 + </com:TTabView> + <com:TTabView Caption="View 3"> + content for view 3 + </com:TTabView> + </com:TTabPanel> + +</com:TContent> diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket876.php b/tests/FunctionalTests/tickets/protected/pages/Ticket876.php new file mode 100644 index 00000000..e95a677c --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket876.php @@ -0,0 +1,11 @@ +<?php + +class Ticket876 extends TPage { + + public function onSetEmptyCssUrl($sender, $param) { + $this->TabPanel->CssUrl = ""; + } + +} + +?> diff --git a/tests/FunctionalTests/tickets/tests/Ticket876TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket876TestCase.php new file mode 100644 index 00000000..0ad9ebfa --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket876TestCase.php @@ -0,0 +1,23 @@ +<?php + +class Ticket876TestCase extends SeleniumTestCase { + + public function test() { + $this->open('tickets/index.php?page=Ticket876'); + $this->assertTitle("Verifying Ticket 876"); + $base = 'ctl0_Content_'; + + $this->assertElementPresent('xpath=//link[@rel="stylesheet"]'); + $this->clickAndWait($base.'Button'); + $this->assertElementNotPresent('xpath=//link[@rel="stylesheet"]'); + + /*$this->select($base.'Date_month', 10); + $this->select($base.'Date_day', 22); + + $this->clickAndWait($base.'SendButton'); + $this->assertTextPresent('2008-10-22');*/ + } + +} + +?> |