diff options
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket698.page | 7 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket698.php | 15 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/tests/Ticket698TestCase.php | 20 |
4 files changed, 43 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index eadda8d4..9607aba5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3069,6 +3069,7 @@ tests/FunctionalTests/tickets/protected/pages/Ticket68.page -text tests/FunctionalTests/tickets/protected/pages/Ticket691.page -text tests/FunctionalTests/tickets/protected/pages/Ticket695.page -text tests/FunctionalTests/tickets/protected/pages/Ticket695.php -text +tests/FunctionalTests/tickets/protected/pages/Ticket698.page -text tests/FunctionalTests/tickets/protected/pages/Ticket703/Logs/LogFile.txt -text tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.page -text tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php -text diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket698.page b/tests/FunctionalTests/tickets/protected/pages/Ticket698.page new file mode 100644 index 00000000..686fef9d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket698.page @@ -0,0 +1,7 @@ + +<com:TContent ID="Content"> +<com:TActiveButton ID="switchContentTypeButton" Text="change" onClick="switchContentTypeClicked" onCallback="switchContentTypeCallback" /> + <com:TActivePanel ID="ContentPanel" > + <com:THtmlArea ID="EditHtmlTextBox"/> + </com:TActivePanel> +</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket698.php b/tests/FunctionalTests/tickets/protected/pages/Ticket698.php new file mode 100644 index 00000000..e7bf6646 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket698.php @@ -0,0 +1,15 @@ +<?php + +prado::using ('System.Web.UI.ActiveControls.*'); + +class Ticket698 extends TPage +{ + public function switchContentTypeClicked( $sender, $param ) { + $this->EditHtmlTextBox->EnableVisualEdit = !$this->EditHtmlTextBox->EnableVisualEdit; + } + + public function switchContentTypeCallback( $sender, $param ) { + $this->ContentPanel->render( $param->NewWriter ); + } +} +?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket698TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket698TestCase.php new file mode 100644 index 00000000..30911d5d --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket698TestCase.php @@ -0,0 +1,20 @@ +<?php +class Ticket698TestCase extends SeleniumTestCase +{ + function test() + { + $base = 'ctl0_Content_'; + $this->open('tickets/index.php?page=Ticket698'); + $this->assertTitle("Verifying Ticket 698"); + + $this->click($base."switchContentTypeButton"); + $this->pause(800); + $this->assertVisible($base."EditHtmlTextBox"); + $this->pause(800); + $this->click($base."switchContentTypeButton"); + $this->pause(1000); + $this->assertNotVisible($base."EditHtmlTextBox"); + } + +} +?>
\ No newline at end of file |