summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php66
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Issue120.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Issue216.php26
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Layout.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket121.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket191.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket21.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket239.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket278.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket283.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket284.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php206
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket359.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket384.php86
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket413.php60
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket422.php210
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket433.php42
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket439.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket470.php46
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket477.php26
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket484.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket488.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket500.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket504.php48
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket507.php48
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket521.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket526.php28
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket528.php68
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket535.php30
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket538.php202
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket542.php44
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php12
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket578.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket585.php34
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket586.php20
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587.php22
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php122
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket591.php16
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket598.php36
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket603.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket660.php10
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php60
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket708.php58
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket72.php24
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket93.php28
-rw-r--r--tests/FunctionalTests/tickets/protected700/common/BasePage.php134
-rw-r--r--tests/FunctionalTests/tickets/protected700/layout/MainLayout.php22
-rw-r--r--tests/FunctionalTests/tickets/protected700/pages/UserLogin.php24
-rw-r--r--tests/FunctionalTests/tickets/tests/Issue120TestCase.php40
-rw-r--r--tests/FunctionalTests/tickets/tests/Issue216TestCase.php54
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket121TestCase.php36
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket191TestCase.php30
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket21TestCase.php36
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket239TestCase.php108
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket274TestCase.php46
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket278TestCase.php112
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket27TestCase.php34
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket284TestCase.php26
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket285TestCase.php22
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket433TestCase.php30
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket439TestCase.php30
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket463TestCase.php24
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket470TestCase.php100
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket477TestCase.php42
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket488TestCase.php82
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket504TestCase.php104
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket507TestCase.php52
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket521TestCase.php38
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket526TestCase.php34
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket528TestCase.php62
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket535TestCase.php70
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket538TestCase.php58
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket54TestCase.php22
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket573TestCase.php26
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket578TestCase.php56
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket585TestCase.php52
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket586TestCase.php40
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket587TestCase.php92
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket653TestCase.php28
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket659TestCase.php44
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket700TestCase.php142
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket703TestCase.php40
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket708TestCase.php54
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket72TestCase.php30
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket93TestCase.php32
85 files changed, 2176 insertions, 2176 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
index 81fdfea7..532b17b0 100644
--- a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
+++ b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
@@ -1,34 +1,34 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class DActiveDropDownList2 extends TActiveDropDownList
-{
- public function setOpcoes($val)
- {
- $this->setViewState('Opcoes', $val);
- }
-
- public function loadOptions()
- {
- $opcao = $this->getViewState('Opcoes');
-
- switch ($opcao) {
- case "turnos":
- $this->DataTextField="descricao";
- $this->DataValueField="id_turno";
- $opts = array(
- array('id_turno' => 'M', 'descricao' => 'Manhã'),
- array('id_turno' => 'T', 'descricao' => 'Tarde'),
- array('id_turno' => 'N', 'descricao' => 'Noite')
- );
- break;
-
- default:
- throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
- break;
- }
- $this->setDataSource($opts);
- $this->dataBind();
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class DActiveDropDownList2 extends TActiveDropDownList
+{
+ public function setOpcoes($val)
+ {
+ $this->setViewState('Opcoes', $val);
+ }
+
+ public function loadOptions()
+ {
+ $opcao = $this->getViewState('Opcoes');
+
+ switch ($opcao) {
+ case "turnos":
+ $this->DataTextField="descricao";
+ $this->DataValueField="id_turno";
+ $opts = array(
+ array('id_turno' => 'M', 'descricao' => 'Manhã'),
+ array('id_turno' => 'T', 'descricao' => 'Tarde'),
+ array('id_turno' => 'N', 'descricao' => 'Noite')
+ );
+ break;
+
+ default:
+ throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
+ break;
+ }
+ $this->setDataSource($opts);
+ $this->dataBind();
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue120.php b/tests/FunctionalTests/tickets/protected/pages/Issue120.php
index c04ae93d..ad6431a0 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Issue120.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Issue120.php
@@ -1,22 +1,22 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Issue120 extends TPage
-{
- public function buttonClickCallback($sender, $param)
- {
-
- $this -> ddl1 -> setDataSource(
- array(
- 'callback value 1' => 'callback item 1',
- 'callback value 2' => 'callback item 2',
- 'callback value 3' => 'callback item 3',
- 'callback value 4' => 'callback item 4'
- )
- );
- $this -> ddl1 -> dataBind();
-
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Issue120 extends TPage
+{
+ public function buttonClickCallback($sender, $param)
+ {
+
+ $this -> ddl1 -> setDataSource(
+ array(
+ 'callback value 1' => 'callback item 1',
+ 'callback value 2' => 'callback item 2',
+ 'callback value 3' => 'callback item 3',
+ 'callback value 4' => 'callback item 4'
+ )
+ );
+ $this -> ddl1 -> dataBind();
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue216.php b/tests/FunctionalTests/tickets/protected/pages/Issue216.php
index 15491e2e..41eac5e9 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Issue216.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Issue216.php
@@ -1,14 +1,14 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Issue216 extends TPage
-{
- public function buttonClickCallback($sender, $param)
- {
-
- $this->result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex);
-
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Issue216 extends TPage
+{
+ public function buttonClickCallback($sender, $param)
+ {
+
+ $this->result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex);
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php
index 6d455371..da23db77 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Layout.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php
@@ -1,23 +1,23 @@
-<?php
-
-class Layout extends TTemplateControl
-{
- public function onLoad($param)
- {
- $num = str_replace(array('Ticket', 'Issue'), '', $this->getPage()->getPagePath());
- $type = str_replace($num, '', $this->getPage()->getPagePath());
-
- $this->getPage()->setTitle("Verifying $type $num");
- $this->ticketlink->setText("Verifying $type $num");
-
- if(strToLower($type) === 'issue') {
- $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");
- }
- else {
- $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");
- }
-
- }
-}
-
+<?php
+
+class Layout extends TTemplateControl
+{
+ public function onLoad($param)
+ {
+ $num = str_replace(array('Ticket', 'Issue'), '', $this->getPage()->getPagePath());
+ $type = str_replace($num, '', $this->getPage()->getPagePath());
+
+ $this->getPage()->setTitle("Verifying $type $num");
+ $this->ticketlink->setText("Verifying $type $num");
+
+ if(strToLower($type) === 'issue') {
+ $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");
+ }
+ else {
+ $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");
+ }
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket121.php b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
index 1a625d83..d913805c 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php
@@ -1,11 +1,11 @@
-<?php
-
-class Ticket121 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- $this->Result->Text="clicked at ({$param->X},{$param->Y})";
- }
-}
-
+<?php
+
+class Ticket121 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ $this->Result->Text="clicked at ({$param->X},{$param->Y})";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket191.php b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
index 61c2a253..1b111bed 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket191.php
@@ -1,22 +1,22 @@
-<?php
-
-class Ticket191 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- if($this->IsValid)
- $this->Application->clearGlobalState('ticket190');
- }
-
- public function customValidation($sender,$param)
- {
- $param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
- }
-
- public function updateGlobal($sender,$param)
- {
- $this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
- }
-}
-
+<?php
+
+class Ticket191 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ if($this->IsValid)
+ $this->Application->clearGlobalState('ticket190');
+ }
+
+ public function customValidation($sender,$param)
+ {
+ $param->IsValid=$this->Application->getGlobalState('ticket190')===$this->TextBox->Text;
+ }
+
+ public function updateGlobal($sender,$param)
+ {
+ $this->Application->setGlobalState('ticket190',$this->TextBox2->Text);
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket21.php b/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
index 041ba4b7..6a06a0f4 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
@@ -1,22 +1,22 @@
-<?php
-
-class Ticket21 extends TPage
-{
- public function onLoad($param)
- {
- parent::onLoad($param);
-
- if(!$this->IsPostBack)
- $this->setViewState("clicks", 0);
- }
-
- public function doClick($sender, $param)
- {
- $clicks = $this->getViewState("clicks");
- $clicks++;
- $this->label1->setText("Radio button clicks: $clicks");
- $this->setViewState("clicks", $clicks);
- }
-}
-
+<?php
+
+class Ticket21 extends TPage
+{
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+
+ if(!$this->IsPostBack)
+ $this->setViewState("clicks", 0);
+ }
+
+ public function doClick($sender, $param)
+ {
+ $clicks = $this->getViewState("clicks");
+ $clicks++;
+ $this->label1->setText("Radio button clicks: $clicks");
+ $this->setViewState("clicks", $clicks);
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket239.php b/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
index a40c94b5..bbf908b1 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket239.php
@@ -1,16 +1,16 @@
-<?php
-
-class Ticket239 extends TPage
-{
- public function activateView($sender,$param)
- {
- $this->Result->Text.=$sender->ID." is activated. ";
- }
-
- public function deactivateView($sender,$param)
- {
- $this->Result->Text.=$sender->ID." is deactivated. ";
- }
-}
-
+<?php
+
+class Ticket239 extends TPage
+{
+ public function activateView($sender,$param)
+ {
+ $this->Result->Text.=$sender->ID." is activated. ";
+ }
+
+ public function deactivateView($sender,$param)
+ {
+ $this->Result->Text.=$sender->ID." is deactivated. ";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket278.php b/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
index 1aadee77..2e18fd54 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
@@ -1,23 +1,23 @@
-<?php
-
-class Ticket278 extends TPage
-{
- function validator2_onValidate($sender, $param)
- {
- $sender->Enabled = $this->check1->Checked;
- }
-
- function validate2_onPostValidate($sender, $param)
- {
- $sender->Enabled = true;
- }
-
- function onPreRender($param)
- {
- parent::onPreRender($param);
- $this->panel1->Style =
- $this->check1->Checked ? "display:block" : "display:none";
- }
-}
-
+<?php
+
+class Ticket278 extends TPage
+{
+ function validator2_onValidate($sender, $param)
+ {
+ $sender->Enabled = $this->check1->Checked;
+ }
+
+ function validate2_onPostValidate($sender, $param)
+ {
+ $sender->Enabled = true;
+ }
+
+ function onPreRender($param)
+ {
+ parent::onPreRender($param);
+ $this->panel1->Style =
+ $this->check1->Checked ? "display:block" : "display:none";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket283.php b/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
index 8426eae4..302ad2da 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket283.php
@@ -1,11 +1,11 @@
-<?php
-
-class Ticket283 extends TPage
-{
- function button_clicked($sender, $param)
- {
- $this->label1->Text = $sender->Text.' Clicked!';
- }
-}
-
+<?php
+
+class Ticket283 extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $this->label1->Text = $sender->Text.' Clicked!';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket284.php b/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
index 332789ff..f9380b12 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket284.php
@@ -1,11 +1,11 @@
-<?php
-
-class Ticket284 extends TPage
-{
- function checkUserAvailability()
- {
-
- }
-}
-
+<?php
+
+class Ticket284 extends TPage
+{
+ function checkUserAvailability()
+ {
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
index da6ad153..4405ca44 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket284Component.php
@@ -1,103 +1,103 @@
-<?php
-
-class Ticket284Component extends TTemplateControl implements IValidatable
-{
- private $_isValid;
- public function onPreRender($param)
- {
- if (!$this->ShowHours && $this->ShowMinutes)
- {
- throw new TConfigurationException(
- 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"'
- );
- }
- }
-
- public function getDatePicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('datePicker');
- }
-
- public function getHourPicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('hourPicker');
- }
-
- public function getMinutePicker()
- {
- $this->ensureChildControls();
- return $this->getRegisteredObject('minutePicker');
- }
-
- public function getShowHours()
- {
- return $this->HourPicker->Visible;
- }
-
- public function setShowHours($value)
- {
- $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value);
- }
-
- public function getShowMinutes()
- {
- return $this->MinutePicker->Visible;
- }
-
- public function setShowMinutes($value)
- {
- $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value);
- }
-
- public function getTimeStamp()
- {
- return strtotime($this->Date);
- }
-
- public function setTimeStamp($value)
- {
- $ts = TPropertyValue::ensureInteger($value);
- $this->DatePicker->TimeStamp = $ts;
- $this->HourPicker->SelectedValue = date('H', $ts);
- $this->MinutePicker->SelectedValue = date('i', $ts);
- }
-
- public function getDate()
- {
- $dateStr = $this->DatePicker->Date;
- if ($this->ShowHours){
- $dateStr .= ' '.$this->HourPicker->SelectedValue;
- }
- if ($this->ShowMinutes){
- $dateStr .= ':'.$this->MinutePicker->SelectedValue;
- }
- return $dateStr;
- }
-
- public function setDate($value)
- {
- $dateStr = TPropertyValue::ensureString($value);
- $this->TimeStamp = strtotime($dateStr);
- }
-
- public function getValidationPropertyValue()
- {
- if ($this->DatePicker->Date === ''){
- return '';
- }
- else{
- return $this->TimeStamp;
- }
- }
- public function getIsValid()
- {
- return $this->_isValid;
- }
- public function setIsValid($value)
- {
- $this->_isValid=TPropertyValue::ensureBoolean($value);
- }
-}
-?>
+<?php
+
+class Ticket284Component extends TTemplateControl implements IValidatable
+{
+ private $_isValid;
+ public function onPreRender($param)
+ {
+ if (!$this->ShowHours && $this->ShowMinutes)
+ {
+ throw new TConfigurationException(
+ 'Invalid OPSDatePicker Config: You cannot specify ShowMinutes="true" while ShowHours="false"'
+ );
+ }
+ }
+
+ public function getDatePicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('datePicker');
+ }
+
+ public function getHourPicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('hourPicker');
+ }
+
+ public function getMinutePicker()
+ {
+ $this->ensureChildControls();
+ return $this->getRegisteredObject('minutePicker');
+ }
+
+ public function getShowHours()
+ {
+ return $this->HourPicker->Visible;
+ }
+
+ public function setShowHours($value)
+ {
+ $this->HourPicker->Visible = TPropertyValue::ensureBoolean($value);
+ }
+
+ public function getShowMinutes()
+ {
+ return $this->MinutePicker->Visible;
+ }
+
+ public function setShowMinutes($value)
+ {
+ $this->MinutePicker->Visible = TPropertyValue::ensureBoolean($value);
+ }
+
+ public function getTimeStamp()
+ {
+ return strtotime($this->Date);
+ }
+
+ public function setTimeStamp($value)
+ {
+ $ts = TPropertyValue::ensureInteger($value);
+ $this->DatePicker->TimeStamp = $ts;
+ $this->HourPicker->SelectedValue = date('H', $ts);
+ $this->MinutePicker->SelectedValue = date('i', $ts);
+ }
+
+ public function getDate()
+ {
+ $dateStr = $this->DatePicker->Date;
+ if ($this->ShowHours){
+ $dateStr .= ' '.$this->HourPicker->SelectedValue;
+ }
+ if ($this->ShowMinutes){
+ $dateStr .= ':'.$this->MinutePicker->SelectedValue;
+ }
+ return $dateStr;
+ }
+
+ public function setDate($value)
+ {
+ $dateStr = TPropertyValue::ensureString($value);
+ $this->TimeStamp = strtotime($dateStr);
+ }
+
+ public function getValidationPropertyValue()
+ {
+ if ($this->DatePicker->Date === ''){
+ return '';
+ }
+ else{
+ return $this->TimeStamp;
+ }
+ }
+ public function getIsValid()
+ {
+ return $this->_isValid;
+ }
+ public function setIsValid($value)
+ {
+ $this->_isValid=TPropertyValue::ensureBoolean($value);
+ }
+}
+?>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket359.php b/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
index 1e544e9b..6b15f699 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket359.php
@@ -1,13 +1,13 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket359 extends TPage
-{
- function validate_text1($sender, $param)
- {
- $param->IsValid = $param->Value == 'Prado';
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket359 extends TPage
+{
+ function validate_text1($sender, $param)
+ {
+ $param->IsValid = $param->Value == 'Prado';
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket384.php b/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
index e928632d..b485ef2b 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket384.php
@@ -1,46 +1,46 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket384 extends TPage
-{
- public function initRecursive($namingContainer=null)
- {
- parent::initRecursive($namingContainer);
- $this->AutoCompleteRepeater->setDataSource(array(1, 2));
- $this->AutoCompleteRepeater->dataBind();
- }
-
- public function submitCallback($sender, $param)
- {
- $this->AutoCompleteRepeater->setDataSource(array(1,2,3,4));
- $this->AutoCompleteRepeater->dataBind();
- $this->AutoCompletePanel->render($this->getResponse()->createHtmlWriter());
- }
-
- public function suggestCountries($sender, $param)
- {
- $sender->setDataSource($this->matchCountries($param->getCallbackParameter()));
- $sender->dataBind();
- }
-
- protected function matchCountries($token)
- {
- $info = Prado::createComponent('System.I18N.core.CultureInfo', 'en');
- $list = array();
- $count = 0;
- $token = strtolower($token);
- foreach($info->getCountries() as $country)
- {
- if(strpos(strtolower($country), $token) === 0)
- {
- $list[] = $country;
- $count++;
- if($count > 10) break;
- }
- }
- return $list;
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket384 extends TPage
+{
+ public function initRecursive($namingContainer=null)
+ {
+ parent::initRecursive($namingContainer);
+ $this->AutoCompleteRepeater->setDataSource(array(1, 2));
+ $this->AutoCompleteRepeater->dataBind();
+ }
+
+ public function submitCallback($sender, $param)
+ {
+ $this->AutoCompleteRepeater->setDataSource(array(1,2,3,4));
+ $this->AutoCompleteRepeater->dataBind();
+ $this->AutoCompletePanel->render($this->getResponse()->createHtmlWriter());
+ }
+
+ public function suggestCountries($sender, $param)
+ {
+ $sender->setDataSource($this->matchCountries($param->getCallbackParameter()));
+ $sender->dataBind();
+ }
+
+ protected function matchCountries($token)
+ {
+ $info = Prado::createComponent('System.I18N.core.CultureInfo', 'en');
+ $list = array();
+ $count = 0;
+ $token = strtolower($token);
+ foreach($info->getCountries() as $country)
+ {
+ if(strpos(strtolower($country), $token) === 0)
+ {
+ $list[] = $country;
+ $count++;
+ if($count > 10) break;
+ }
+ }
+ return $list;
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket413.php b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
index 1da32b52..c7a7081a 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
@@ -1,31 +1,31 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket413 extends TPage
-{
- private $_data = array(
- array('id'=>'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),
- array('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),
- array('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>true),
- array('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false));
- public function onLoad($param)
- {
- parent::onLoad($param);
-
- if (!$this->IsPostBack)
- {
- $this->locations_datagrid->setDataSource($this->_data);
- $this->locations_datagrid->dataBind();
- }
-
- }
-
- public function bla($sender, $param)
- {
- $sender->Text = 'a';
- }
-
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket413 extends TPage
+{
+ private $_data = array(
+ array('id'=>'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),
+ array('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),
+ array('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>true),
+ array('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false));
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+
+ if (!$this->IsPostBack)
+ {
+ $this->locations_datagrid->setDataSource($this->_data);
+ $this->locations_datagrid->dataBind();
+ }
+
+ }
+
+ public function bla($sender, $param)
+ {
+ $sender->Text = 'a';
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket422.php b/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
index 9a46ff75..85647ae2 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket422.php
@@ -1,108 +1,108 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket422 extends TPage
-{
- private $_listItemsA;
- private $_listItemsB;
-
- public function onInit($param)
- {
- parent::onInit($param);
- $this->_listItemsA[] = array("title" => "Please select", "id" => -1,"category" => -1);
- $this->_listItemsA[] = array("title" => "Item A", "id" => 1,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item B", "id" => 2,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item C", "id" => 3,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item D", "id" => 4,"category" => 1);
- $this->_listItemsA[] = array("title" => "Item E", "id" => 5,"category" => 1);
-
- $this->_listItemsB[] = array("title" => "List 2 Item A", "id" => 1,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item B", "id" => 2,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item C", "id" => 3,"category" => 1);
- $this->_listItemsB[] = array("title" => "List 2 Item D", "id" => 4,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item E", "id" => 5,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item F", "id" => 6,"category" => 2);
- $this->_listItemsB[] = array("title" => "List 2 Item G", "id" => 7,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item H", "id" => 8,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item I", "id" => 9,"category" => 3);
- $this->_listItemsB[] = array("title" => "List 2 Item J", "id" => 10,"category" => 4);
- $this->_listItemsB[] = array("title" => "List 2 Item K", "id" => 11,"category" => 4);
- $this->_listItemsB[] = array("title" => "List 2 Item L", "id" => 12,"category" => 4);
-
- $this->list1->DataValueField ='id';
- $this->list1->DataTextField = 'title';
- }
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- if(!$this->IsPostBack)
- {
- $this->list1->DataSource = $this->_listItemsA;
- $this->list1->dataBind();
- }
- }
-
- function list1_changed($sender)
- {
- if ($sender->getSelectedValue() == -1)
- {
- $this->label1->setText("Please select a category");
- $this->list2->setEnabled(false);
- return;
- }
-
- $this->addOptionsToListProblem($sender->getSelectedValue());
- }
-
- function addOptionsToListProblem($parent)
- {
- $foo = array();
- $bar = 0;
- $sel = array("title" => "Please select", "id" => -1,"category" => -1);
- $foo[] = $sel;
- foreach ($this->_listItemsB as $p)
- {
- if ($p["category"] == $parent)
- {
- $foo[] = $p;
- }
- }
-
- $this->list2->DataValueField = 'id';
- $this->list2->DataTextField = 'title';
- $this->list2->DataSource = $foo;
- $this->list2->dataBind();
- $this->list2->setEnabled(true);
- }
-
- function list2_changed($sender)
- {
- $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
- }
-
- function select_index_3()
- {
- $this->list1->setSelectedIndex(3);
- }
-
- function clear_selections()
- {
- $this->list1->clearSelection();
- }
-
- function select_value_2()
- {
- $this->list1->setSelectedValue("value 2");
- }
-
- function select_index_3_plus()
- {
- $this->list1->setSelectedValue("value 3");
- $this->list1_changed($this->list1);
- $this->list2->setSelectedValue("value 3 - item 3");
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket422 extends TPage
+{
+ private $_listItemsA;
+ private $_listItemsB;
+
+ public function onInit($param)
+ {
+ parent::onInit($param);
+ $this->_listItemsA[] = array("title" => "Please select", "id" => -1,"category" => -1);
+ $this->_listItemsA[] = array("title" => "Item A", "id" => 1,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item B", "id" => 2,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item C", "id" => 3,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item D", "id" => 4,"category" => 1);
+ $this->_listItemsA[] = array("title" => "Item E", "id" => 5,"category" => 1);
+
+ $this->_listItemsB[] = array("title" => "List 2 Item A", "id" => 1,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item B", "id" => 2,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item C", "id" => 3,"category" => 1);
+ $this->_listItemsB[] = array("title" => "List 2 Item D", "id" => 4,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item E", "id" => 5,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item F", "id" => 6,"category" => 2);
+ $this->_listItemsB[] = array("title" => "List 2 Item G", "id" => 7,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item H", "id" => 8,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item I", "id" => 9,"category" => 3);
+ $this->_listItemsB[] = array("title" => "List 2 Item J", "id" => 10,"category" => 4);
+ $this->_listItemsB[] = array("title" => "List 2 Item K", "id" => 11,"category" => 4);
+ $this->_listItemsB[] = array("title" => "List 2 Item L", "id" => 12,"category" => 4);
+
+ $this->list1->DataValueField ='id';
+ $this->list1->DataTextField = 'title';
+ }
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsPostBack)
+ {
+ $this->list1->DataSource = $this->_listItemsA;
+ $this->list1->dataBind();
+ }
+ }
+
+ function list1_changed($sender)
+ {
+ if ($sender->getSelectedValue() == -1)
+ {
+ $this->label1->setText("Please select a category");
+ $this->list2->setEnabled(false);
+ return;
+ }
+
+ $this->addOptionsToListProblem($sender->getSelectedValue());
+ }
+
+ function addOptionsToListProblem($parent)
+ {
+ $foo = array();
+ $bar = 0;
+ $sel = array("title" => "Please select", "id" => -1,"category" => -1);
+ $foo[] = $sel;
+ foreach ($this->_listItemsB as $p)
+ {
+ if ($p["category"] == $parent)
+ {
+ $foo[] = $p;
+ }
+ }
+
+ $this->list2->DataValueField = 'id';
+ $this->list2->DataTextField = 'title';
+ $this->list2->DataSource = $foo;
+ $this->list2->dataBind();
+ $this->list2->setEnabled(true);
+ }
+
+ function list2_changed($sender)
+ {
+ $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
+ }
+
+ function select_index_3()
+ {
+ $this->list1->setSelectedIndex(3);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_2()
+ {
+ $this->list1->setSelectedValue("value 2");
+ }
+
+ function select_index_3_plus()
+ {
+ $this->list1->setSelectedValue("value 3");
+ $this->list1_changed($this->list1);
+ $this->list2->setSelectedValue("value 3 - item 3");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket433.php b/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
index 2e5c1ff7..a87f8f82 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket433.php
@@ -1,24 +1,24 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket433 extends TPage
-{
- public function onLoad($param)
- {
- if(!$this->IsPostBack)
- $this->VoteClick->Text = "BEFORE click";
- }
-
- public function onUpdateVoteClick($sender, $param)
- {
- $sender->Text = 'AFTER click';
- }
-
- public function onUpdateVoteCallback($sender, $param)
- {
- $sender->Text .= ' CALLBACK DONE';
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket433 extends TPage
+{
+ public function onLoad($param)
+ {
+ if(!$this->IsPostBack)
+ $this->VoteClick->Text = "BEFORE click";
+ }
+
+ public function onUpdateVoteClick($sender, $param)
+ {
+ $sender->Text = 'AFTER click';
+ }
+
+ public function onUpdateVoteCallback($sender, $param)
+ {
+ $sender->Text .= ' CALLBACK DONE';
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket439.php b/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
index eaebc250..dcb46412 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket439.php
@@ -1,15 +1,15 @@
<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket439 extends TPage
-{
-
- function button_clicked($sender, $param)
- {
- $page = $this->Service->constructUrl('Home');
- $this->Response->redirect($page);
- }
-}
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket439 extends TPage
+{
+
+ function button_clicked($sender, $param)
+ {
+ $page = $this->Service->constructUrl('Home');
+ $this->Response->redirect($page);
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket470.php b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
index 45741176..2e023242 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
@@ -1,24 +1,24 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket470 extends TPage
-{
- /**
- * Increase the reload counter and render the activepanel content
- */
- public function Reload($sender, $param){
- $this->Results->Text = "";
- $this->counter->Text = $this->counter->Text +1;
- $this->activePanelTest->renderControl($param->getNewWriter());
- }
-
- /**
- *function to call when the form is valid (and the linkbutton fired his callback event)
- */
- public function Valid($sender, $param){
- $this->Results->Text = "OK!!!";
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket470 extends TPage
+{
+ /**
+ * Increase the reload counter and render the activepanel content
+ */
+ public function Reload($sender, $param){
+ $this->Results->Text = "";
+ $this->counter->Text = $this->counter->Text +1;
+ $this->activePanelTest->renderControl($param->getNewWriter());
+ }
+
+ /**
+ *function to call when the form is valid (and the linkbutton fired his callback event)
+ */
+ public function Valid($sender, $param){
+ $this->Results->Text = "OK!!!";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket477.php b/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
index 49c72b9e..a6309958 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket477.php
@@ -1,16 +1,16 @@
<?php
-
-class Ticket477 extends TPage
-{
- function do_validate_1($sender, $param)
- {
- $param->IsValid=false;
- }
-
- function do_validate_2($sender, $param)
- {
- $param->IsValid=false;
- }
-}
+
+class Ticket477 extends TPage
+{
+ function do_validate_1($sender, $param)
+ {
+ $param->IsValid=false;
+ }
+
+ function do_validate_2($sender, $param)
+ {
+ $param->IsValid=false;
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
index 813ccc23..89dac261 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php
@@ -1,30 +1,30 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket484 extends TPage
-{
-
- function onLoad($param)
- {
- new TActiveButton;
- for ($i = 0; $i<1500; $i++)
- {
- $ctl = Prado::createComponent("TLabel");
- $ctl->Text = "Label ".$i;
- $this->Controls[] = $ctl;
- }
- }
-
- function button2_onclick($sender, $param)
- {
- $this->label1->Text = "Button 1 was clicked ";
- }
-
- function button2_oncallback($sender, $param)
- {
- $this->label1->Text .= "using callback!";
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket484 extends TPage
+{
+
+ function onLoad($param)
+ {
+ new TActiveButton;
+ for ($i = 0; $i<1500; $i++)
+ {
+ $ctl = Prado::createComponent("TLabel");
+ $ctl->Text = "Label ".$i;
+ $this->Controls[] = $ctl;
+ }
+ }
+
+ function button2_onclick($sender, $param)
+ {
+ $this->label1->Text = "Button 1 was clicked ";
+ }
+
+ function button2_oncallback($sender, $param)
+ {
+ $this->label1->Text .= "using callback!";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket488.php b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
index e9610d1d..97334f21 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
@@ -1,13 +1,13 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket488 extends TPage
-{
- function login($sender,$param)
- {
- //$param->IsValid = $this->Password == 'Prado';
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket488 extends TPage
+{
+ function login($sender,$param)
+ {
+ //$param->IsValid = $this->Password == 'Prado';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket500.php b/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
index fc7af222..a0b96ed5 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket500.php
@@ -1,13 +1,13 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket500 extends TPage
-{
- function set_url()
- {
- $url=$this->Service->constructUrl('Cats.Buy.Browse',array('filter' => 'basket'));
- $this->link1->NavigateUrl = $url;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket500 extends TPage
+{
+ function set_url()
+ {
+ $url=$this->Service->constructUrl('Cats.Buy.Browse',array('filter' => 'basket'));
+ $this->link1->NavigateUrl = $url;
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket504.php b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
index 7ad8e989..3d1bdfb6 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
@@ -1,25 +1,25 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket504 extends TPage
-{
- private $panels = array('panelA', 'panelB', 'panelC','panelD',);
- private function showPanel($id, $param) {
- foreach($this->panels as $panel) {
- if($id == $panel) {
- $this->$panel->setVisible(true);
- } else {
- $this->$panel->setVisible(false);
- }
- }
- }
- public function changePanel($sender,$param){
- $this->showPanel($param->CallbackParameter, $param);
- }
- public function loadData_Callback($sender, $param){
- die("parameter is ".$param->CallbackParameter);
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket504 extends TPage
+{
+ private $panels = array('panelA', 'panelB', 'panelC','panelD',);
+ private function showPanel($id, $param) {
+ foreach($this->panels as $panel) {
+ if($id == $panel) {
+ $this->$panel->setVisible(true);
+ } else {
+ $this->$panel->setVisible(false);
+ }
+ }
+ }
+ public function changePanel($sender,$param){
+ $this->showPanel($param->CallbackParameter, $param);
+ }
+ public function loadData_Callback($sender, $param){
+ die("parameter is ".$param->CallbackParameter);
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket507.php b/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
index 94cd8aed..ea358e65 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket507.php
@@ -1,25 +1,25 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket507 extends TPage
-{
-
- public function onLoad($s)
- {
- //the following fixed the static declaration on the above
- $this->list1->SelectionMode="Multiple";
- }
-
- function list1_callback($sender, $param)
- {
- $values = $sender->getSelectedValues();
- $this->label1->setText("Selection: ".implode(', ', $values));
- }
-
- function enable_list()
- {
- $this->list1->enabled = true;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket507 extends TPage
+{
+
+ public function onLoad($s)
+ {
+ //the following fixed the static declaration on the above
+ $this->list1->SelectionMode="Multiple";
+ }
+
+ function list1_callback($sender, $param)
+ {
+ $values = $sender->getSelectedValues();
+ $this->label1->setText("Selection: ".implode(', ', $values));
+ }
+
+ function enable_list()
+ {
+ $this->list1->enabled = true;
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket521.php b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
index d28a777a..e7e65b86 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket521.php
@@ -1,16 +1,16 @@
-<?php
-
-class Ticket521 extends TPage
-{
-
- public function doOnClick($s, $p){
- $this->label1->Text = "Button 1 was clicked ";
- }
- public function doSave($s, $p){
- $this->label1->Text .= " on callback ";
-
- }
-
-
-}
+<?php
+
+class Ticket521 extends TPage
+{
+
+ public function doOnClick($s, $p){
+ $this->label1->Text = "Button 1 was clicked ";
+ }
+ public function doSave($s, $p){
+ $this->label1->Text .= " on callback ";
+
+ }
+
+
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket526.php b/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
index 9afaf28f..1500ad73 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket526.php
@@ -1,15 +1,15 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket526 extends TPage
-{
- public function callback($s, $p)
- {
- $this->dp->Mode="Button";
- $this->textbox->Text = 'callback';
- $this->activePanel->Enabled="false";
- $this->activePanel->render($p->NewWriter);
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket526 extends TPage
+{
+ public function callback($s, $p)
+ {
+ $this->dp->Mode="Button";
+ $this->textbox->Text = 'callback';
+ $this->activePanel->Enabled="false";
+ $this->activePanel->render($p->NewWriter);
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket528.php b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
index c2d1fcbe..2e05dbfd 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php
@@ -1,35 +1,35 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket528 extends TPage
-{
- public static $turnos = array(
- 'M' => array('id_turno' => 'M', 'descricao' => 'Manhã'),
- 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'),
- 'N' => array('id_turno' => 'N', 'descricao' => 'Noite')
- );
-
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- if (!$this->IsPostBack) {
- $this->DDropTurno->loadOptions();
- $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
- }
- }
-
-
- protected function loadDadosTurno($id)
- {
- $this->Codigo->setText(self::$turnos[$id]['id_turno']);
- $this->Descricao->setText(self::$turnos[$id]['descricao']);
- }
-
-
- public function trocaTurno($sender,$param)
- {
- $this->loadDadosTurno($sender->getSelectedValue());
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket528 extends TPage
+{
+ public static $turnos = array(
+ 'M' => array('id_turno' => 'M', 'descricao' => 'Manhã'),
+ 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'),
+ 'N' => array('id_turno' => 'N', 'descricao' => 'Noite')
+ );
+
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if (!$this->IsPostBack) {
+ $this->DDropTurno->loadOptions();
+ $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
+ }
+ }
+
+
+ protected function loadDadosTurno($id)
+ {
+ $this->Codigo->setText(self::$turnos[$id]['id_turno']);
+ $this->Descricao->setText(self::$turnos[$id]['descricao']);
+ }
+
+
+ public function trocaTurno($sender,$param)
+ {
+ $this->loadDadosTurno($sender->getSelectedValue());
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
index 4f9b2f51..705a5474 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php
@@ -1,16 +1,16 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket535 extends TPage
-{
- public function noGroup($sender, $param)
- {
- $this->label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} ";
- }
-
- public function group($sender, $param)
- {
- $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} ";
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket535 extends TPage
+{
+ public function noGroup($sender, $param)
+ {
+ $this->label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} ";
+ }
+
+ public function group($sender, $param)
+ {
+ $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} ";
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket538.php b/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
index 2ad9fd43..2ba0d841 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket538.php
@@ -1,102 +1,102 @@
-<?php
-// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket538 extends TPage
-{
- public function checkboxClicked($sender,$param)
- {
- $sender->Text= $sender->ClientID . " clicked";
- }
-
- public function checkboxCallback($sender, $param)
- {
- $sender->Text .= ' using callback';
- }
-
- public function readData()
- {
- $data=array(
- array('id'=>'001','name'=>'John','age'=>31),
- array('id'=>'002','name'=>'Mary','age'=>30),
- array('id'=>'003','name'=>'Cary','age'=>20),
- array('id'=>'004','name'=>'Kevin','age'=>65),
- array('id'=>'005','name'=>'Steven','age'=>10),
- array('id'=>'006','name'=>'Josh','age'=>23),
- array('id'=>'007','name'=>'Lary','age'=>54));
- return $data;
- }
-
- //--------------------------------------------------------------------
- // TListBox
- //--------------------------------------------------------------------
-
- public function dataSelector2_Clicked($sender, $param)
- {
- $this->DataViewer2->DataTextField='name';
- $this->DataViewer2->Items->clear();
- foreach ($this->readData() as $index=>$person)
- {
- $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
- $item->Attributes->Group = 'test1';
- $this->DataViewer2->Items->add($item);
- }
- foreach ($this->readData() as $index=>$person)
- {
- $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
- $item2->Attributes->Group = 'test2';
- $this->DataViewer2->Items->add($item2);
- }
- $this->DataViewer2->dataBind();
- }
-
- public function selectBtn2_Clicked()
- {
- $text = '';
- foreach ($this->DataViewer2->SelectedIndices as $index)
- {
- $text .= '"'.$this->DataViewer2->Items[$index]->Attributes->Group.'", ';
- }
- $this->ALLog->setText($text);
- }
-
- //--------------------------------------------------------------------
- // TActiveListBox
- //--------------------------------------------------------------------
-
-
- public function dataSelector_Clicked($sender, $param)
- {
- $this->DataViewer->DataTextField='name';
- $this->DataViewer->Items->clear();
- foreach ($this->readData() as $index=>$person)
- {
- $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
- $item->Attributes->Group = 'test1';
- $this->DataViewer->Items->add($item);
- }
-
- foreach ($this->readData() as $index=>$person)
- {
- $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
- $item2->Attributes->Group = 'test2';
- $this->DataViewer->Items->add($item2);
- }
- $this->DataViewer->dataBind();
- }
-
- public function selectBtn_Clicked()
- {
- $text = '';
- foreach ($this->DataViewer->SelectedIndices as $index)
- {
- if($this->DataViewer->Items[$index]->Attributes['Group'])
- $text .= $index .'- "'.$this->DataViewer->Items[$index]->Attributes->Group.'", ';
- else
- $text .= $index.',';
- }
- $this->ALLog->setText($text);
- }
-
-}
-
+<?php
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket538 extends TPage
+{
+ public function checkboxClicked($sender,$param)
+ {
+ $sender->Text= $sender->ClientID . " clicked";
+ }
+
+ public function checkboxCallback($sender, $param)
+ {
+ $sender->Text .= ' using callback';
+ }
+
+ public function readData()
+ {
+ $data=array(
+ array('id'=>'001','name'=>'John','age'=>31),
+ array('id'=>'002','name'=>'Mary','age'=>30),
+ array('id'=>'003','name'=>'Cary','age'=>20),
+ array('id'=>'004','name'=>'Kevin','age'=>65),
+ array('id'=>'005','name'=>'Steven','age'=>10),
+ array('id'=>'006','name'=>'Josh','age'=>23),
+ array('id'=>'007','name'=>'Lary','age'=>54));
+ return $data;
+ }
+
+ //--------------------------------------------------------------------
+ // TListBox
+ //--------------------------------------------------------------------
+
+ public function dataSelector2_Clicked($sender, $param)
+ {
+ $this->DataViewer2->DataTextField='name';
+ $this->DataViewer2->Items->clear();
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
+ $item->Attributes->Group = 'test1';
+ $this->DataViewer2->Items->add($item);
+ }
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
+ $item2->Attributes->Group = 'test2';
+ $this->DataViewer2->Items->add($item2);
+ }
+ $this->DataViewer2->dataBind();
+ }
+
+ public function selectBtn2_Clicked()
+ {
+ $text = '';
+ foreach ($this->DataViewer2->SelectedIndices as $index)
+ {
+ $text .= '"'.$this->DataViewer2->Items[$index]->Attributes->Group.'", ';
+ }
+ $this->ALLog->setText($text);
+ }
+
+ //--------------------------------------------------------------------
+ // TActiveListBox
+ //--------------------------------------------------------------------
+
+
+ public function dataSelector_Clicked($sender, $param)
+ {
+ $this->DataViewer->DataTextField='name';
+ $this->DataViewer->Items->clear();
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item = new TListItem('G1: '.$person['name'].'=>'.$person['age'],$index);
+ $item->Attributes->Group = 'test1';
+ $this->DataViewer->Items->add($item);
+ }
+
+ foreach ($this->readData() as $index=>$person)
+ {
+ $item2 = new TListItem('G2: '.$person['name'].'=>'.$person['age'],$index+100);
+ $item2->Attributes->Group = 'test2';
+ $this->DataViewer->Items->add($item2);
+ }
+ $this->DataViewer->dataBind();
+ }
+
+ public function selectBtn_Clicked()
+ {
+ $text = '';
+ foreach ($this->DataViewer->SelectedIndices as $index)
+ {
+ if($this->DataViewer->Items[$index]->Attributes['Group'])
+ $text .= $index .'- "'.$this->DataViewer->Items[$index]->Attributes->Group.'", ';
+ else
+ $text .= $index.',';
+ }
+ $this->ALLog->setText($text);
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket542.php b/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
index bcd32a04..59169d64 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket542.php
@@ -1,23 +1,23 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket542 extends TPage {
-
- public function slideUp($sender, $param) {
- $this->CallbackClient->slideUp($this->TheBox);
- }
-
- public function blindUp($sender, $param) {
- $this->CallbackClient->blindUp($this->TheBox);
- }
-
- public function slideDown($sender, $param) {
- $this->CallbackClient->slideDown($this->TheBox);
- }
-
- public function blindDown($sender, $param) {
- $this->CallbackClient->blindDown($this->TheBox);
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket542 extends TPage {
+
+ public function slideUp($sender, $param) {
+ $this->CallbackClient->slideUp($this->TheBox);
+ }
+
+ public function blindUp($sender, $param) {
+ $this->CallbackClient->blindUp($this->TheBox);
+ }
+
+ public function slideDown($sender, $param) {
+ $this->CallbackClient->slideDown($this->TheBox);
+ }
+
+ public function blindDown($sender, $param) {
+ $this->CallbackClient->blindDown($this->TheBox);
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
index 817e7c45..917f45cf 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
@@ -1,7 +1,7 @@
-<?php
-
-class Ticket54Master extends TTemplateControl
-{
-}
-
+<?php
+
+class Ticket54Master extends TTemplateControl
+{
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket578.php b/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
index 7d7dbaac..7b7463a2 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket578.php
@@ -1,13 +1,13 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket578 extends TPage
-{
-
- function button2_onclick($sender, $param)
- {
- $this->label1->Text = "Button 1 was clicked : " . htmlspecialchars($this->text1->Text);
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket578 extends TPage
+{
+
+ function button2_onclick($sender, $param)
+ {
+ $this->label1->Text = "Button 1 was clicked : " . htmlspecialchars($this->text1->Text);
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket585.php b/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
index 5932146d..1cda7900 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket585.php
@@ -1,18 +1,18 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket585 extends TPage
-{
-
- public function ChkDate ($sender, $param)
- {
- if ($param->Value == "15-03-2007")
- {
- $param->IsValid=false;
- }
- else
- $param->IsValid=true;
- }
-
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket585 extends TPage
+{
+
+ public function ChkDate ($sender, $param)
+ {
+ if ($param->Value == "15-03-2007")
+ {
+ $param->IsValid=false;
+ }
+ else
+ $param->IsValid=true;
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket586.php b/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
index d6fafd0d..574d6f72 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket586.php
@@ -1,11 +1,11 @@
-<?php
-
-class Ticket586 extends TPage
-{
- function button_clicked($sender, $param)
- {
- $this->label1->Text = $sender->Text . ' Clicked!';
- }
-}
-
+<?php
+
+class Ticket586 extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $this->label1->Text = $sender->Text . ' Clicked!';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587.php b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
index a84a876c..21ce7a64 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
@@ -1,12 +1,12 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket587 extends TPage
-{
- public function onTriggerCallback( $sender, $param )
- {
- $count = (int) $this->count->getText();
- $this->count->setText( ++$count );
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket587 extends TPage
+{
+ public function onTriggerCallback( $sender, $param )
+ {
+ $count = (int) $this->count->getText();
+ $this->count->setText( ++$count );
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php b/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
index 7d24e5f6..fea88274 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php
@@ -1,62 +1,62 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket587_reopened extends TPage
-{
- function list1_changed($sender)
- {
- $this->label1->setText("Selection 1: ".$sender->getSelectedValue());
- $this->addOptionsToList2($sender->getSelectedValue(),$sender->getSelectedIndex());
- }
-
- function suggest($sender, $param)
- {
- $this->list2->Items->clear();
- for($i = 0; $i < 2; $i++)
- $this->list2->Items[$i] = 'asd 3 - item '.($i+1);
- }
-
- function addOptionsToList2($parent,$index)
- {
- $this->list2->Items->clear();
- for($i = 0; $i < 2+$index; $i++)
- $this->list2->Items[$i] = $parent.' - item '.($i+1);
- $this->list2->setEnabled(true);
- }
-
- function list2_changed($sender)
- {
- $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
- }
-
- function select_index_3()
- {
- $this->list1->setSelectedIndex(3);
- }
-
- function clear_selections()
- {
- $this->list1->clearSelection();
- }
-
- function select_value_2()
- {
- $this->list1->setSelectedValue("value 2");
- }
-
- function select_index_3_plus()
- {
- $this->list1->setSelectedValue("value 3");
- $this->list1_changed($this->list1);
- $this->list2->setSelectedValue("value 3 - item 3");
- }
-
- function do_postback()
- {
- $value = 'List 1: '.$this->list1->selectedValue. ', List 2: '. $this->list2->selectedValue;
- $this->label1->Text = $value;
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket587_reopened extends TPage
+{
+ function list1_changed($sender)
+ {
+ $this->label1->setText("Selection 1: ".$sender->getSelectedValue());
+ $this->addOptionsToList2($sender->getSelectedValue(),$sender->getSelectedIndex());
+ }
+
+ function suggest($sender, $param)
+ {
+ $this->list2->Items->clear();
+ for($i = 0; $i < 2; $i++)
+ $this->list2->Items[$i] = 'asd 3 - item '.($i+1);
+ }
+
+ function addOptionsToList2($parent,$index)
+ {
+ $this->list2->Items->clear();
+ for($i = 0; $i < 2+$index; $i++)
+ $this->list2->Items[$i] = $parent.' - item '.($i+1);
+ $this->list2->setEnabled(true);
+ }
+
+ function list2_changed($sender)
+ {
+ $this->label1->setText("Selection 2: ".$sender->getSelectedValue());
+ }
+
+ function select_index_3()
+ {
+ $this->list1->setSelectedIndex(3);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_2()
+ {
+ $this->list1->setSelectedValue("value 2");
+ }
+
+ function select_index_3_plus()
+ {
+ $this->list1->setSelectedValue("value 3");
+ $this->list1_changed($this->list1);
+ $this->list2->setSelectedValue("value 3 - item 3");
+ }
+
+ function do_postback()
+ {
+ $value = 'List 1: '.$this->list1->selectedValue. ', List 2: '. $this->list2->selectedValue;
+ $this->label1->Text = $value;
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket591.php b/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
index 9e49e835..8616ac02 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket591.php
@@ -1,9 +1,9 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket591 extends TPage
-{
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket591 extends TPage
+{
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket598.php b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
index 0456725f..a8c4c397 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
@@ -1,19 +1,19 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket598 extends TPage
-{
-public function onLoad ($param) {
- parent::onLoad($param);
- if (!$this->isPostBack and !$this->isCallBack) {
- $this->Lbl->setText(date("h:m:s"));
- }
- }
- public function startBigTask ($sender, $param) {
- sleep(10); // Simulate task
- }
-
- public function updateLbl($sender, $param) {
- $this->Lbl->SetText(date("h:m:s"));
- }
-}
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket598 extends TPage
+{
+public function onLoad ($param) {
+ parent::onLoad($param);
+ if (!$this->isPostBack and !$this->isCallBack) {
+ $this->Lbl->setText(date("h:m:s"));
+ }
+ }
+ public function startBigTask ($sender, $param) {
+ sleep(10); // Simulate task
+ }
+
+ public function updateLbl($sender, $param) {
+ $this->Lbl->SetText(date("h:m:s"));
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php
index 6af0cf6d..138ffbd4 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php
@@ -1,30 +1,30 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-
-class Ticket603 extends TPage
-{
- protected $_isHtml;
-
- public function onLoad($param) {
- parent::onLoad($param);
- $this->_isHtml = true;
- }
-
- public function switchContentTypeClicked( $sender, $param ) {
- $this->_isHtml = !$this->_isHtml;
- if ( $this->_isHtml ) {
- $this->EditHtmlTextBox->EnableVisualEdit = true;
- $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
- } else {
- $this->EditHtmlTextBox->EnableVisualEdit = false;
- $this->EditHtmlTextBox->Text = 'plai bla bla';
- }
- }
-
- public function switchContentTypeCallback( $sender, $param ) {
- $this->ContentPanel->render( $param->NewWriter );
- }
-}
-
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket603 extends TPage
+{
+ protected $_isHtml;
+
+ public function onLoad($param) {
+ parent::onLoad($param);
+ $this->_isHtml = true;
+ }
+
+ public function switchContentTypeClicked( $sender, $param ) {
+ $this->_isHtml = !$this->_isHtml;
+ if ( $this->_isHtml ) {
+ $this->EditHtmlTextBox->EnableVisualEdit = true;
+ $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
+ } else {
+ $this->EditHtmlTextBox->EnableVisualEdit = false;
+ $this->EditHtmlTextBox->Text = 'plai bla bla';
+ }
+ }
+
+ public function switchContentTypeCallback( $sender, $param ) {
+ $this->ContentPanel->render( $param->NewWriter );
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
index 2785a816..457e3ed8 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
@@ -12,15 +12,15 @@ class Ticket660 extends TPage {
$this->A->setText($this->T->getText() . $iso_text);
}
- public function suggest($sender, $param)
- {
+ public function suggest($sender, $param)
+ {
$token=$param->getCallbackParameter();
$sender->setDataSource(array(
1 => 'ABC Token:'.$token,
2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token
));
- $sender->dataBind();
- }
-
+ $sender->dataBind();
+ }
+
}
?>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
index 1b5b638a..eb446077 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket703/Ticket703.php
@@ -1,31 +1,31 @@
-<?php
-
-class Ticket703 extends TPage {
- public function onLoad ($param)
- {
- parent::onLoad($param);
- if (!$this->isPostBack && !$this->isCallback)
- {
- $this->refreshLog();
- }
- }
-
- public function refreshLog ()
- {
- $this->logBox->Text=file_get_contents(prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt'));
- }
-
- public function clearLog ($sender, $param)
- {
- $file=prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt');
- $f=fopen($file,"w");
- fclose($f);
- $this->refreshLog();
- }
-
- public function addLog($sender,$param)
- {
- prado::log($this->logMessage->getText(), TLogger::DEBUG, "Tickets");
- }
-}
+<?php
+
+class Ticket703 extends TPage {
+ public function onLoad ($param)
+ {
+ parent::onLoad($param);
+ if (!$this->isPostBack && !$this->isCallback)
+ {
+ $this->refreshLog();
+ }
+ }
+
+ public function refreshLog ()
+ {
+ $this->logBox->Text=file_get_contents(prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt'));
+ }
+
+ public function clearLog ($sender, $param)
+ {
+ $file=prado::getPathOfNameSpace('Ticket703.Logs.LogFile', '.txt');
+ $f=fopen($file,"w");
+ fclose($f);
+ $this->refreshLog();
+ }
+
+ public function addLog($sender,$param)
+ {
+ prado::log($this->logMessage->getText(), TLogger::DEBUG, "Tickets");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
index b57aa444..2eca39d9 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php
@@ -1,30 +1,30 @@
-<?php
-
-Prado::using('System.Web.UI.ActiveControls.*');
-class Ticket708 extends TPage
-{
- public function onLoad ($param)
- {
- if (!$this->getIsCallback() && !$this->getIsPostBack())
- {
- $this->grid->dataSource=$this->getData();
- $this->grid->dataBind();
- }
- }
-
- protected function getData()
- {
- return array (
- array ('RadioValue' => 1, 'Text' => 'Radio 1'),
- array ('RadioValue' => 2, 'Text' => 'Radio 2'),
- array ('RadioValue' => 3, 'Text' => 'Radio 3'),
- array ('RadioValue' => 4, 'Text' => 'Radio 4'),
- );
- }
-
- public function ChangeRadio ($sender, $param)
- {
- $this->Result->setText("You have selected Radio Button #".$sender->getValue());
- }
-}
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket708 extends TPage
+{
+ public function onLoad ($param)
+ {
+ if (!$this->getIsCallback() && !$this->getIsPostBack())
+ {
+ $this->grid->dataSource=$this->getData();
+ $this->grid->dataBind();
+ }
+ }
+
+ protected function getData()
+ {
+ return array (
+ array ('RadioValue' => 1, 'Text' => 'Radio 1'),
+ array ('RadioValue' => 2, 'Text' => 'Radio 2'),
+ array ('RadioValue' => 3, 'Text' => 'Radio 3'),
+ array ('RadioValue' => 4, 'Text' => 'Radio 4'),
+ );
+ }
+
+ public function ChangeRadio ($sender, $param)
+ {
+ $this->Result->setText("You have selected Radio Button #".$sender->getValue());
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket72.php b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
index 02432886..14a8a112 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php
@@ -1,13 +1,13 @@
-<?php
-
-class Ticket72 extends TPage
-{
- public function ButtonClick($sender,$param)
- {
- $a1 = $this->K1->SafeText;
- $a2 = $this->K2->SafeText;
- $this->ResultLabel->Text = $a2;
- }
-}
-
+<?php
+
+class Ticket72 extends TPage
+{
+ public function ButtonClick($sender,$param)
+ {
+ $a1 = $this->K1->SafeText;
+ $a2 = $this->K2->SafeText;
+ $this->ResultLabel->Text = $a2;
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
index dbdf2cab..dbee4556 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
@@ -1,14 +1,14 @@
-<?php
-/*
- * Created on 13/04/2006
- */
-
-class Ticket93 extends TPage
-{
- public function buttonClicked($sender,$param)
- {
- echo 'postback triggered with value '.$param->PostBackValue;
- }
-}
-
-?>
+<?php
+/*
+ * Created on 13/04/2006
+ */
+
+class Ticket93 extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ echo 'postback triggered with value '.$param->PostBackValue;
+ }
+}
+
+?>
diff --git a/tests/FunctionalTests/tickets/protected700/common/BasePage.php b/tests/FunctionalTests/tickets/protected700/common/BasePage.php
index 1e40f754..bbb93650 100644
--- a/tests/FunctionalTests/tickets/protected700/common/BasePage.php
+++ b/tests/FunctionalTests/tickets/protected700/common/BasePage.php
@@ -1,68 +1,68 @@
-<?php
-
-class BasePage extends TPage
-{
- private $_param1='default 1';
- private $_param2='default 2';
- private $_param3='default 3';
- private $_param4='default 4';
- private $_param5='default 5';
-
- public function onInit($param)
- {
- parent::onInit($param);
- $this->Title=$this->PagePath;
- }
-
- public function getParam1()
- {
- return $this->_param1;
- }
-
- public function setParam1($value)
- {
- $this->_param1=$value;
- }
-
- public function getParam2()
- {
- return $this->_param2;
- }
-
- public function setParam2($value)
- {
- $this->_param2=$value;
- }
-
- public function getParam3()
- {
- return $this->_param3;
- }
-
- public function setParam3($value)
- {
- $this->_param3=$value;
- }
-
- public function getParam4()
- {
- return $this->_param4;
- }
-
- public function setParam4($value)
- {
- $this->_param4=$value;
- }
-
- public function getParam5()
- {
- return $this->_param5;
- }
-
- public function setParam5($value)
- {
- $this->_param5=$value;
- }
-}
-
+<?php
+
+class BasePage extends TPage
+{
+ private $_param1='default 1';
+ private $_param2='default 2';
+ private $_param3='default 3';
+ private $_param4='default 4';
+ private $_param5='default 5';
+
+ public function onInit($param)
+ {
+ parent::onInit($param);
+ $this->Title=$this->PagePath;
+ }
+
+ public function getParam1()
+ {
+ return $this->_param1;
+ }
+
+ public function setParam1($value)
+ {
+ $this->_param1=$value;
+ }
+
+ public function getParam2()
+ {
+ return $this->_param2;
+ }
+
+ public function setParam2($value)
+ {
+ $this->_param2=$value;
+ }
+
+ public function getParam3()
+ {
+ return $this->_param3;
+ }
+
+ public function setParam3($value)
+ {
+ $this->_param3=$value;
+ }
+
+ public function getParam4()
+ {
+ return $this->_param4;
+ }
+
+ public function setParam4($value)
+ {
+ $this->_param4=$value;
+ }
+
+ public function getParam5()
+ {
+ return $this->_param5;
+ }
+
+ public function setParam5($value)
+ {
+ $this->_param5=$value;
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php
index 3e0a3d19..6f385ce8 100644
--- a/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php
+++ b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php
@@ -1,12 +1,12 @@
-<?php
-
-class MainLayout extends TTemplateControl
-{
- public function logout($sender,$param)
- {
- $this->Application->getModule('auth')->logout();
- $this->Response->reload();
- }
-}
-
+<?php
+
+class MainLayout extends TTemplateControl
+{
+ public function logout($sender,$param)
+ {
+ $this->Application->getModule('auth')->logout();
+ $this->Response->reload();
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected700/pages/UserLogin.php b/tests/FunctionalTests/tickets/protected700/pages/UserLogin.php
index 37258879..8071fb29 100644
--- a/tests/FunctionalTests/tickets/protected700/pages/UserLogin.php
+++ b/tests/FunctionalTests/tickets/protected700/pages/UserLogin.php
@@ -1,13 +1,13 @@
-<?php
-
-class UserLogin extends BasePage
-{
- public function loginButtonClicked($sender,$param)
- {
- $authManager=$this->Application->getModule('auth');
- $authManager->login($this->Username->Text,$this->Password->Text);
- $this->Response->redirect($this->Service->constructUrl('Home'));
- }
-}
-
+<?php
+
+class UserLogin extends BasePage
+{
+ public function loginButtonClicked($sender,$param)
+ {
+ $authManager=$this->Application->getModule('auth');
+ $authManager->login($this->Username->Text,$this->Password->Text);
+ $this->Response->redirect($this->Service->constructUrl('Home'));
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Issue120TestCase.php b/tests/FunctionalTests/tickets/tests/Issue120TestCase.php
index a2823c9d..07afd06c 100644
--- a/tests/FunctionalTests/tickets/tests/Issue120TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Issue120TestCase.php
@@ -1,21 +1,21 @@
-<?php
-
-class Issue120TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Issue120');
- $this->assertTextPresent('TActiveDropDownList PromptValue Test');
-
- $this->assertSelectedIndex("ctl0_Content_ddl1", 0);
- $this->assertSelectedValue("ctl0_Content_ddl1", 'PromptValue');
-
- $this->click("ctl0_Content_btn1");
- $this->pause(800);
-
- $this->assertSelectedIndex("ctl0_Content_ddl1", 0);
- $this->assertSelectedValue("ctl0_Content_ddl1", 'PromptValue');
- }
-}
-
+<?php
+
+class Issue120TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Issue120');
+ $this->assertTextPresent('TActiveDropDownList PromptValue Test');
+
+ $this->assertSelectedIndex("ctl0_Content_ddl1", 0);
+ $this->assertSelectedValue("ctl0_Content_ddl1", 'PromptValue');
+
+ $this->click("ctl0_Content_btn1");
+ $this->pause(800);
+
+ $this->assertSelectedIndex("ctl0_Content_ddl1", 0);
+ $this->assertSelectedValue("ctl0_Content_ddl1", 'PromptValue');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Issue216TestCase.php b/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
index 1cfdf0cd..0c351f33 100644
--- a/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Issue216TestCase.php
@@ -1,28 +1,28 @@
-<?php
-
-class Issue216TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Issue216');
- $this->assertTextPresent('TTabPanel doesn\'t preserve active tab on callback request');
-
- $this->assertVisible('ctl0_Content_tab1');
-
- $this->click("ctl0_Content_btn1");
- $this->pause(800);
-
- $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 0");
-
- $this->click("ctl0_Content_tab2_0");
- $this->pause(800);
-
- $this->assertVisible('ctl0_Content_tab2');
-
- $this->click("ctl0_Content_btn1");
- $this->pause(800);
- $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 1");
- }
-}
-
+<?php
+
+class Issue216TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Issue216');
+ $this->assertTextPresent('TTabPanel doesn\'t preserve active tab on callback request');
+
+ $this->assertVisible('ctl0_Content_tab1');
+
+ $this->click("ctl0_Content_btn1");
+ $this->pause(800);
+
+ $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 0");
+
+ $this->click("ctl0_Content_tab2_0");
+ $this->pause(800);
+
+ $this->assertVisible('ctl0_Content_tab2');
+
+ $this->click("ctl0_Content_btn1");
+ $this->pause(800);
+ $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 1");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
index 7453aeef..3cad6c77 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php
@@ -1,19 +1,19 @@
-<?php
-
-class Ticket121TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket121');
- $this->type("ctl0\$Content\$FooTextBox", "");
- $this->verifyNotVisible('ctl0_Content_ctl1');
- $this->click("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
- $this->verifyVisible('ctl0_Content_ctl1');
- $this->type("ctl0\$Content\$FooTextBox", "content");
- $this->clickAndWait("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
- $this->verifyNotVisible('ctl0_Content_ctl1');
- $this->verifyTextPresent("clicked at", "");
- }
-}
-
+<?php
+
+class Ticket121TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket121');
+ $this->type("ctl0\$Content\$FooTextBox", "");
+ $this->verifyNotVisible('ctl0_Content_ctl1');
+ $this->click("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
+ $this->verifyVisible('ctl0_Content_ctl1');
+ $this->type("ctl0\$Content\$FooTextBox", "content");
+ $this->clickAndWait("//input[@type='image' and @id='ctl0_Content_ctl0']", "");
+ $this->verifyNotVisible('ctl0_Content_ctl1');
+ $this->verifyTextPresent("clicked at", "");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket191TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket191TestCase.php
index d899aab5..616a578a 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket191TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket191TestCase.php
@@ -1,16 +1,16 @@
-<?php
-
-class Ticket191TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket191');
- $this->type("ctl0\$Content\$TextBox2", "test");
- $this->clickAndWait("name=ctl0\$Content\$ctl0");
- $this->type("ctl0\$Content\$TextBox", "test");
- $this->clickAndWait("name=ctl0\$Content\$ctl1");
- $this->verifyNotVisible('ctl0_Content_ctl2');
- }
-}
-
+<?php
+
+class Ticket191TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket191');
+ $this->type("ctl0\$Content\$TextBox2", "test");
+ $this->clickAndWait("name=ctl0\$Content\$ctl0");
+ $this->type("ctl0\$Content\$TextBox", "test");
+ $this->clickAndWait("name=ctl0\$Content\$ctl1");
+ $this->verifyNotVisible('ctl0_Content_ctl2');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket21TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket21TestCase.php
index 394f8c95..24c5e346 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket21TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket21TestCase.php
@@ -1,19 +1,19 @@
-<?php
-
-class Ticket21TestCase extends SeleniumTestCase
-{
- function test()
- {
- //problem with test runner clicking on radio buttons
- $this->skipBrowsers(self::OPERA);
-
- $this->open('tickets/index.php?page=Ticket21');
- $this->assertTitle("Verifying Ticket 21");
- $this->clickAndWait("ctl0_Content_button1");
- $this->verifyTextPresent("Radio button clicks: 1", "");
- $this->click("ctl0_Content_button1");
- $this->verifyTextPresent("Radio button clicks: 1", "");
- }
-}
-
+<?php
+
+class Ticket21TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ //problem with test runner clicking on radio buttons
+ $this->skipBrowsers(self::OPERA);
+
+ $this->open('tickets/index.php?page=Ticket21');
+ $this->assertTitle("Verifying Ticket 21");
+ $this->clickAndWait("ctl0_Content_button1");
+ $this->verifyTextPresent("Radio button clicks: 1", "");
+ $this->click("ctl0_Content_button1");
+ $this->verifyTextPresent("Radio button clicks: 1", "");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket239TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket239TestCase.php
index 9d895cb4..2fe84397 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket239TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket239TestCase.php
@@ -1,55 +1,55 @@
-<?php
-
-class Ticket239TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket239');
-
- // view1
- $this->verifyTextPresent('view1 is activated','');
- $this->verifyTextNotPresent('view1 is deactivated','');
- $this->verifyTextNotPresent('view2 is activated','');
- $this->verifyTextNotPresent('view2 is deactivated','');
- $this->verifyTextNotPresent('view3 is activated','');
- $this->verifyTextNotPresent('view3 is deactivated','');
-
- // goto view2
- $this->clickAndWait('name=ctl0$Content$ctl1');
- $this->verifyTextNotPresent('view1 is activated','');
- $this->verifyTextPresent('view1 is deactivated','');
- $this->verifyTextPresent('view2 is activated','');
- $this->verifyTextNotPresent('view2 is deactivated','');
- $this->verifyTextNotPresent('view3 is activated','');
- $this->verifyTextNotPresent('view3 is deactivated','');
-
- // goto view3
- $this->clickAndWait('name=ctl0$Content$ctl3');
- $this->verifyTextNotPresent('view1 is activated','');
- $this->verifyTextNotPresent('view1 is deactivated','');
- $this->verifyTextNotPresent('view2 is activated','');
- $this->verifyTextPresent('view2 is deactivated','');
- $this->verifyTextPresent('view3 is activated','');
- $this->verifyTextNotPresent('view3 is deactivated','');
-
- // goto view2
- $this->clickAndWait('name=ctl0$Content$ctl4');
- $this->verifyTextNotPresent('view1 is activated','');
- $this->verifyTextNotPresent('view1 is deactivated','');
- $this->verifyTextPresent('view2 is activated','');
- $this->verifyTextNotPresent('view2 is deactivated','');
- $this->verifyTextNotPresent('view3 is activated','');
- $this->verifyTextPresent('view3 is deactivated','');
-
- // goto view1
- $this->clickAndWait('name=ctl0$Content$ctl2');
- $this->verifyTextPresent('view1 is activated','');
- $this->verifyTextNotPresent('view1 is deactivated','');
- $this->verifyTextNotPresent('view2 is activated','');
- $this->verifyTextPresent('view2 is deactivated','');
- $this->verifyTextNotPresent('view3 is activated','');
- $this->verifyTextNotPresent('view3 is deactivated','');
- }
-}
-
+<?php
+
+class Ticket239TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket239');
+
+ // view1
+ $this->verifyTextPresent('view1 is activated','');
+ $this->verifyTextNotPresent('view1 is deactivated','');
+ $this->verifyTextNotPresent('view2 is activated','');
+ $this->verifyTextNotPresent('view2 is deactivated','');
+ $this->verifyTextNotPresent('view3 is activated','');
+ $this->verifyTextNotPresent('view3 is deactivated','');
+
+ // goto view2
+ $this->clickAndWait('name=ctl0$Content$ctl1');
+ $this->verifyTextNotPresent('view1 is activated','');
+ $this->verifyTextPresent('view1 is deactivated','');
+ $this->verifyTextPresent('view2 is activated','');
+ $this->verifyTextNotPresent('view2 is deactivated','');
+ $this->verifyTextNotPresent('view3 is activated','');
+ $this->verifyTextNotPresent('view3 is deactivated','');
+
+ // goto view3
+ $this->clickAndWait('name=ctl0$Content$ctl3');
+ $this->verifyTextNotPresent('view1 is activated','');
+ $this->verifyTextNotPresent('view1 is deactivated','');
+ $this->verifyTextNotPresent('view2 is activated','');
+ $this->verifyTextPresent('view2 is deactivated','');
+ $this->verifyTextPresent('view3 is activated','');
+ $this->verifyTextNotPresent('view3 is deactivated','');
+
+ // goto view2
+ $this->clickAndWait('name=ctl0$Content$ctl4');
+ $this->verifyTextNotPresent('view1 is activated','');
+ $this->verifyTextNotPresent('view1 is deactivated','');
+ $this->verifyTextPresent('view2 is activated','');
+ $this->verifyTextNotPresent('view2 is deactivated','');
+ $this->verifyTextNotPresent('view3 is activated','');
+ $this->verifyTextPresent('view3 is deactivated','');
+
+ // goto view1
+ $this->clickAndWait('name=ctl0$Content$ctl2');
+ $this->verifyTextPresent('view1 is activated','');
+ $this->verifyTextNotPresent('view1 is deactivated','');
+ $this->verifyTextNotPresent('view2 is activated','');
+ $this->verifyTextPresent('view2 is deactivated','');
+ $this->verifyTextNotPresent('view3 is activated','');
+ $this->verifyTextNotPresent('view3 is deactivated','');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php
index 8b74e565..b7ba1251 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket274TestCase.php
@@ -1,24 +1,24 @@
-<?php
-
-class Ticket274TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket274');
- $this->assertTitle('Verifying Ticket 274');
- $this->assertNotVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
-
- $this->clickAndWait($base.'button1');
- $this->assertVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
-
- $this->type($base.'MyDate', 'asd');
- $this->clickAndWait($base.'button1');
- $this->assertNotVisible($base.'validator1');
- $this->assertVisible($base.'validator2');
- }
-}
-
+<?php
+
+class Ticket274TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket274');
+ $this->assertTitle('Verifying Ticket 274');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+
+ $this->clickAndWait($base.'button1');
+ $this->assertVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+
+ $this->type($base.'MyDate', 'asd');
+ $this->clickAndWait($base.'button1');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertVisible($base.'validator2');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket278TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket278TestCase.php
index 6e3666b9..a559ca14 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket278TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket278TestCase.php
@@ -1,57 +1,57 @@
-<?php
-
-class Ticket278TestCase extends SeleniumTestCase
-{
- function test()
- {
- //problem with test runner clicking on radio buttons
- $this->skipBrowsers(self::OPERA);
-
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket278');
- $this->assertTitle('Verifying Ticket 278');
- $this->assertNotVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
- $this->assertNotVisible($base.'panel1');
-
- $this->click($base.'button1');
- $this->assertVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
-
- $this->type($base.'text1', 'asd');
- $this->clickAndWait($base.'button1');
- $this->assertNotVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
- $this->assertNotVisible($base.'panel1');
-
- $this->click($base.'check1');
- $this->click($base.'button1');
- $this->assertNotVisible($base.'validator1');
- $this->assertVisible($base.'validator2');
- $this->assertVisible($base.'panel1');
-
-
- $this->type($base.'text1', '');
- $this->type($base.'text2', 'asd');
- $this->click($base.'button1');
- $this->assertVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
- $this->assertVisible($base.'panel1');
-
-
- $this->type($base.'text1', 'asd');
- $this->clickAndWait($base.'button1');
- $this->assertNotVisible($base.'validator1');
- $this->assertNotVisible($base.'validator2');
- $this->assertVisible($base.'panel1');
-
- $this->type($base.'text1', '');
- $this->type($base.'text2', '');
- $this->click($base.'button1');
- $this->assertVisible($base.'validator1');
- $this->assertVisible($base.'validator2');
- $this->assertVisible($base.'panel1');
- }
-}
-
+<?php
+
+class Ticket278TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ //problem with test runner clicking on radio buttons
+ $this->skipBrowsers(self::OPERA);
+
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket278');
+ $this->assertTitle('Verifying Ticket 278');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+ $this->assertNotVisible($base.'panel1');
+
+ $this->click($base.'button1');
+ $this->assertVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+
+ $this->type($base.'text1', 'asd');
+ $this->clickAndWait($base.'button1');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+ $this->assertNotVisible($base.'panel1');
+
+ $this->click($base.'check1');
+ $this->click($base.'button1');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertVisible($base.'validator2');
+ $this->assertVisible($base.'panel1');
+
+
+ $this->type($base.'text1', '');
+ $this->type($base.'text2', 'asd');
+ $this->click($base.'button1');
+ $this->assertVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+ $this->assertVisible($base.'panel1');
+
+
+ $this->type($base.'text1', 'asd');
+ $this->clickAndWait($base.'button1');
+ $this->assertNotVisible($base.'validator1');
+ $this->assertNotVisible($base.'validator2');
+ $this->assertVisible($base.'panel1');
+
+ $this->type($base.'text1', '');
+ $this->type($base.'text2', '');
+ $this->click($base.'button1');
+ $this->assertVisible($base.'validator1');
+ $this->assertVisible($base.'validator2');
+ $this->assertVisible($base.'panel1');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket27TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket27TestCase.php
index 6a5ccdb9..dac852e2 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket27TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket27TestCase.php
@@ -1,18 +1,18 @@
-<?php
-
-class Ticket27TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket27');
- $this->verifyTitle("Verifying Ticket 27", "");
- $this->click("//input[@value='Agree']", "");
- $this->assertVisible("ctl0_Content_validator1", "");
- $this->type("ctl0_Content_TextBox", "122");
- $this->assertNotVisible("ctl0_Content_validator1", "");
- $this->clickAndWait("//input[@value='Disagree']", "");
- $this->assertNotVisible("ctl0_Content_validator1", "");
- }
-}
-
+<?php
+
+class Ticket27TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket27');
+ $this->verifyTitle("Verifying Ticket 27", "");
+ $this->click("//input[@value='Agree']", "");
+ $this->assertVisible("ctl0_Content_validator1", "");
+ $this->type("ctl0_Content_TextBox", "122");
+ $this->assertNotVisible("ctl0_Content_validator1", "");
+ $this->clickAndWait("//input[@value='Disagree']", "");
+ $this->assertNotVisible("ctl0_Content_validator1", "");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket284TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket284TestCase.php
index 9a6fa7c3..15194f60 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket284TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket284TestCase.php
@@ -1,14 +1,14 @@
-<?php
-
-class Ticket284TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket284');
- $this->assertTextPresent('Verifying Ticket 284');
- $this->click('ctl0_Content_ctl1');
-
- }
-}
-
+<?php
+
+class Ticket284TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket284');
+ $this->assertTextPresent('Verifying Ticket 284');
+ $this->click('ctl0_Content_ctl1');
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket285TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket285TestCase.php
index cd681c58..6f4a2a8e 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket285TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket285TestCase.php
@@ -1,12 +1,12 @@
-<?php
-
-class Ticket285TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket285');
- $this->assertTextPresent('350.00');
- $this->assertTextPresent('349.99');
- }
-}
+<?php
+
+class Ticket285TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket285');
+ $this->assertTextPresent('350.00');
+ $this->assertTextPresent('349.99');
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket433TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket433TestCase.php
index 1bbfb7ec..b855edc8 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket433TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket433TestCase.php
@@ -1,18 +1,18 @@
<?php
-
-class Ticket433TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket433');
- $this->assertTitle("Verifying Ticket 433");
- $this->assertText("{$base}VoteClick", "BEFORE click");
-
- $this->click("{$base}VoteClick");
- $this->pause(800);
- $this->assertText("{$base}VoteClick", "AFTER click CALLBACK DONE");
- }
-}
+
+class Ticket433TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket433');
+ $this->assertTitle("Verifying Ticket 433");
+ $this->assertText("{$base}VoteClick", "BEFORE click");
+
+ $this->click("{$base}VoteClick");
+ $this->pause(800);
+ $this->assertText("{$base}VoteClick", "AFTER click CALLBACK DONE");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket439TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket439TestCase.php
index 651e322c..e097a9ce 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket439TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket439TestCase.php
@@ -1,16 +1,16 @@
-<?php
-
-class Ticket439TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket439');
- $this->assertTitle("Verifying Ticket 439");
- $this->click("{$base}button1");
- $this->waitForPageToLoad(3000);
- $this->pause(800);
- $this->assertTitle("Verifying Home");
- }
-}
+<?php
+
+class Ticket439TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket439');
+ $this->assertTitle("Verifying Ticket 439");
+ $this->click("{$base}button1");
+ $this->waitForPageToLoad(3000);
+ $this->pause(800);
+ $this->assertTitle("Verifying Home");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket463TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket463TestCase.php
index 51b27b87..9da3be34 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket463TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket463TestCase.php
@@ -1,13 +1,13 @@
-<?php
-
-class Ticket463TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket463');
- $this->verifyTitle("Verifying Ticket 463", "");
- $this->assertTextPresent('May 1, 2005 12:00:00 AM');
- }
-}
-
+<?php
+
+class Ticket463TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket463');
+ $this->verifyTitle("Verifying Ticket 463", "");
+ $this->assertTextPresent('May 1, 2005 12:00:00 AM');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php
index 05ad6fb6..a2c4826e 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket470TestCase.php
@@ -1,51 +1,51 @@
-<?php
-
-class Ticket470TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket470');
- $this->verifyTitle("Verifying Ticket 470");
- $this->assertText("{$base}counter", "0");
- $this->assertText("{$base}Results", "");
- $this->assertNotVisible("{$base}validator1");
-
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}counter", "0");
- $this->assertText("{$base}Results", "");
- $this->assertVisible("{$base}validator1");
-
- $this->type("{$base}TextBox", "hello");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}counter", "0");
- $this->assertText("{$base}Results", "OK!!!");
- $this->assertNotVisible("{$base}validator1");
-
- //reload
- $this->click("{$base}reloadButton");
- $this->pause(800);
- $this->assertValue("{$base}TextBox", "hello");
- $this->assertText("{$base}counter", "1");
- $this->assertText("{$base}Results", "");
- $this->assertNotVisible("{$base}validator1");
-
- $this->type("{$base}TextBox", "");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}counter", "1");
- $this->assertText("{$base}Results", "");
- $this->assertVisible("{$base}validator1");
-
- $this->type("{$base}TextBox", "test");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}counter", "1");
- $this->assertText("{$base}Results", "OK!!!");
- $this->assertNotVisible("{$base}validator1");
- }
-}
-
+<?php
+
+class Ticket470TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket470');
+ $this->verifyTitle("Verifying Ticket 470");
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "");
+ $this->assertVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "hello");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "0");
+ $this->assertText("{$base}Results", "OK!!!");
+ $this->assertNotVisible("{$base}validator1");
+
+ //reload
+ $this->click("{$base}reloadButton");
+ $this->pause(800);
+ $this->assertValue("{$base}TextBox", "hello");
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "");
+ $this->assertVisible("{$base}validator1");
+
+ $this->type("{$base}TextBox", "test");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}counter", "1");
+ $this->assertText("{$base}Results", "OK!!!");
+ $this->assertNotVisible("{$base}validator1");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket477TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket477TestCase.php
index ea32ff5f..10c36e7d 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket477TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket477TestCase.php
@@ -1,24 +1,24 @@
<?php
-
-class Ticket477TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket477');
- $this->assertTitle("Verifying Ticket 477");
- $this->assertNotVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
-
- $this->clickAndWait("{$base}list1_c1");
- $this->assertVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
-
-
- $this->clickAndWait("{$base}list2_c1");
- $this->assertNotVisible("{$base}validator1");
- $this->assertVisible("{$base}validator2");
- }
-}
+
+class Ticket477TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket477');
+ $this->assertTitle("Verifying Ticket 477");
+ $this->assertNotVisible("{$base}validator1");
+ $this->assertNotVisible("{$base}validator2");
+
+ $this->clickAndWait("{$base}list1_c1");
+ $this->assertVisible("{$base}validator1");
+ $this->assertNotVisible("{$base}validator2");
+
+
+ $this->clickAndWait("{$base}list2_c1");
+ $this->assertNotVisible("{$base}validator1");
+ $this->assertVisible("{$base}validator2");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
index 2a83fac9..d96b92f1 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php
@@ -1,42 +1,42 @@
-<?php
-
-class Ticket488TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('active-controls/index.php?page=CustomValidatorByPass');
- $this->assertTextPresent('Custom Login');
- $this->assertNotVisible('loginBox');
- $this->click("showLogin");
- $this->assertVisible("loginBox");
- $this->assertNotVisible("validator1");
- $this->assertNotVisible("validator2");
-
- $this->click("checkLogin");
- $this->pause(800);
- $this->assertVisible("validator1");
- $this->assertNotVisible("validator2");
-
- $this->type('Username', 'tea');
- $this->type('Password', 'mmama');
-
- $this->click("checkLogin");
- $this->pause(800);
- $this->assertNotVisible("validator1");
- $this->assertVisible("validator2");
-
- $this->type('Password', 'test');
- $this->click("checkLogin");
- $this->pause(800);
- $this->assertNotVisible("validator1");
- $this->assertNotVisible("validator2");
- }
-
- function test_more()
- {
- $this->open('tickets/index.php?page=Ticket488');
- //add test assertions here.
- }
-}
-
+<?php
+
+class Ticket488TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('active-controls/index.php?page=CustomValidatorByPass');
+ $this->assertTextPresent('Custom Login');
+ $this->assertNotVisible('loginBox');
+ $this->click("showLogin");
+ $this->assertVisible("loginBox");
+ $this->assertNotVisible("validator1");
+ $this->assertNotVisible("validator2");
+
+ $this->click("checkLogin");
+ $this->pause(800);
+ $this->assertVisible("validator1");
+ $this->assertNotVisible("validator2");
+
+ $this->type('Username', 'tea');
+ $this->type('Password', 'mmama');
+
+ $this->click("checkLogin");
+ $this->pause(800);
+ $this->assertNotVisible("validator1");
+ $this->assertVisible("validator2");
+
+ $this->type('Password', 'test');
+ $this->click("checkLogin");
+ $this->pause(800);
+ $this->assertNotVisible("validator1");
+ $this->assertNotVisible("validator2");
+ }
+
+ function test_more()
+ {
+ $this->open('tickets/index.php?page=Ticket488');
+ //add test assertions here.
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php
index 7c74a1d1..5629e5f3 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket504TestCase.php
@@ -1,53 +1,53 @@
-<?php
-
-class Ticket504TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket504');
- $this->verifyTitle("Verifying Ticket 504", "");
-
- $this->assertText("status", "");
-
- $this->assertVisible("{$base}panelA");
- $this->assertVisible("{$base}panelB");
- $this->assertVisible("{$base}panelC");
- $this->assertVisible("{$base}panelD");
-
- $this->click("{$base}linka");
- $this->pause(800);
- $this->assertVisible("{$base}panelA");
- $this->assertNotVisible("{$base}panelB");
- $this->assertNotVisible("{$base}panelC");
- $this->assertNotVisible("{$base}panelD");
- $this->assertText("status", "panelA updated");
-
- $this->click("{$base}linkb");
- $this->pause(800);
- $this->assertNotVisible("{$base}panelA");
- $this->assertVisible("{$base}panelB");
- $this->assertNotVisible("{$base}panelC");
- $this->assertNotVisible("{$base}panelD");
- $this->assertText("status", "panelB updated");
-
- $this->click("{$base}linkc");
- $this->pause(800);
- $this->assertNotVisible("{$base}panelA");
- $this->assertNotVisible("{$base}panelB");
- $this->assertVisible("{$base}panelC");
- $this->assertNotVisible("{$base}panelD");
- $this->assertText("status", "panelC updated");
-
- $this->click("{$base}linkd");
- $this->pause(800);
- $this->assertNotVisible("{$base}panelA");
- $this->assertNotVisible("{$base}panelB");
- $this->assertNotVisible("{$base}panelC");
- $this->assertVisible("{$base}panelD");
- $this->assertText("status", "panelD updated");
-
- }
-}
-
+<?php
+
+class Ticket504TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket504');
+ $this->verifyTitle("Verifying Ticket 504", "");
+
+ $this->assertText("status", "");
+
+ $this->assertVisible("{$base}panelA");
+ $this->assertVisible("{$base}panelB");
+ $this->assertVisible("{$base}panelC");
+ $this->assertVisible("{$base}panelD");
+
+ $this->click("{$base}linka");
+ $this->pause(800);
+ $this->assertVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelA updated");
+
+ $this->click("{$base}linkb");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelB updated");
+
+ $this->click("{$base}linkc");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertVisible("{$base}panelC");
+ $this->assertNotVisible("{$base}panelD");
+ $this->assertText("status", "panelC updated");
+
+ $this->click("{$base}linkd");
+ $this->pause(800);
+ $this->assertNotVisible("{$base}panelA");
+ $this->assertNotVisible("{$base}panelB");
+ $this->assertNotVisible("{$base}panelC");
+ $this->assertVisible("{$base}panelD");
+ $this->assertText("status", "panelD updated");
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket507TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket507TestCase.php
index e8ddbfce..a430fb4e 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket507TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket507TestCase.php
@@ -1,27 +1,27 @@
-<?php
-
-class Ticket507TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base='ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket507');
- $this->verifyTitle("Verifying Ticket 507", "");
-
- $this->assertText("{$base}label1", "Label 1");
-
- $this->click("{$base}button1");
- $this->pause(800);
-
- $this->select("{$base}list1", "item 1");
- $this->pause(800);
- $this->assertText("{$base}label1", "Selection: value 1");
-
- $this->addSelection("{$base}list1", "item 3");
-
- $this->pause(800);
- $this->assertText("{$base}label1", "Selection: value 1, value 3");
- }
-}
-
+<?php
+
+class Ticket507TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base='ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket507');
+ $this->verifyTitle("Verifying Ticket 507", "");
+
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("{$base}button1");
+ $this->pause(800);
+
+ $this->select("{$base}list1", "item 1");
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Selection: value 1");
+
+ $this->addSelection("{$base}list1", "item 3");
+
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Selection: value 1, value 3");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php
index ea9feae8..b0cdd8af 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket521TestCase.php
@@ -1,20 +1,20 @@
-<?php
-
-class Ticket521TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open("tickets/index.php?page=Ticket521");
- $this->assertTitle("Verifying Ticket 521");
- $this->assertText("{$base}label1", "Label 1");
-
- $this->click("{$base}button1");
- $this->pause(1200);
-
- $this->assertText("{$base}label1", "Button 1 was clicked on callback");
- }
-
-}
-
+<?php
+
+class Ticket521TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open("tickets/index.php?page=Ticket521");
+ $this->assertTitle("Verifying Ticket 521");
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("{$base}button1");
+ $this->pause(1200);
+
+ $this->assertText("{$base}label1", "Button 1 was clicked on callback");
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php
index abba3a96..c8894082 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket526TestCase.php
@@ -1,18 +1,18 @@
-<?php
-
-class Ticket526TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base="ctl0_Content_";
- $this->open('tickets/index.php?page=Ticket526');
- $this->verifyTitle("Verifying Ticket 526", "");
-
- $this->assertElementNotPresent("{$base}dpbutton");
-
- $this->click("{$base}btn");
- $this->pause(800);
- $this->assertElementPresent("{$base}dpbutton");
- }
-}
+<?php
+
+class Ticket526TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket526');
+ $this->verifyTitle("Verifying Ticket 526", "");
+
+ $this->assertElementNotPresent("{$base}dpbutton");
+
+ $this->click("{$base}btn");
+ $this->pause(800);
+ $this->assertElementPresent("{$base}dpbutton");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket528TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket528TestCase.php
index 86b28378..79791444 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket528TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket528TestCase.php
@@ -1,32 +1,32 @@
-<?php
-
-class Ticket528TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket528');
- $this->assertTitle("Verifying Ticket 528");
-
- $this->select("{$base}DDropTurno", "Tarde");
- $this->pause(800);
-
- $this->assertValue("{$base}Codigo", "T");
- $this->assertValue("{$base}Descricao", "Tarde");
-
- $this->select("{$base}DDropTurno", "Manhã");
- $this->pause(800);
-
- $this->assertValue("{$base}Codigo", "M");
- $this->assertValue("{$base}Descricao", "Manhã");
-
- $this->select("{$base}DDropTurno", "Noite");
- $this->pause(800);
-
- $this->assertValue("{$base}Codigo", "N");
- $this->assertValue("{$base}Descricao", "Noite");
-
- }
-}
-
+<?php
+
+class Ticket528TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket528');
+ $this->assertTitle("Verifying Ticket 528");
+
+ $this->select("{$base}DDropTurno", "Tarde");
+ $this->pause(800);
+
+ $this->assertValue("{$base}Codigo", "T");
+ $this->assertValue("{$base}Descricao", "Tarde");
+
+ $this->select("{$base}DDropTurno", "Manhã");
+ $this->pause(800);
+
+ $this->assertValue("{$base}Codigo", "M");
+ $this->assertValue("{$base}Descricao", "Manhã");
+
+ $this->select("{$base}DDropTurno", "Noite");
+ $this->pause(800);
+
+ $this->assertValue("{$base}Codigo", "N");
+ $this->assertValue("{$base}Descricao", "Noite");
+
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php
index 26f70803..222f4b7b 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php
@@ -1,36 +1,36 @@
-<?php
-
-class Ticket535TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket535');
- $this->assertTitle("Verifying Ticket 535");
-
- $this->assertText("{$base}label1", "Label 1");
-
- $this->click("{$base}radio1");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
-
- $this->click("{$base}radio2");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
-
- $this->click("{$base}bad_radio1");
- $this->click("{$base}button2");
- $this->pause(800);
- $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
-
- $this->click("{$base}bad_radio2");
- $this->click("{$base}button2");
- $this->pause(800);
- $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
- }
-
-}
-
+<?php
+
+class Ticket535TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket535');
+ $this->assertTitle("Verifying Ticket 535");
+
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("{$base}radio1");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}');
+
+ $this->click("{$base}radio2");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}');
+
+ $this->click("{$base}bad_radio1");
+ $this->click("{$base}button2");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}');
+
+ $this->click("{$base}bad_radio2");
+ $this->click("{$base}button2");
+ $this->pause(800);
+ $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}');
+ }
+
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket538TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket538TestCase.php
index 712ff24b..20730b25 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket538TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket538TestCase.php
@@ -1,30 +1,30 @@
-<?php
-
-class Ticket538TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base="ctl0_Content_";
- $this->open('tickets/index.php?page=Ticket538');
- $this->verifyTitle("Verifying Ticket 538", "");
-
- $this->assertText("{$base}ALLog", 'waiting for response...');
-
- $this->select("{$base}DataViewer", "empty :(");
- $this->click("{$base}selectBtn");
- $this->pause(800);
-
- $this->assertText("{$base}ALLog", '0,');
-
- $this->select("{$base}DataSelector", "select data set 2");
- $this->pause(800);
- $this->select("{$base}DataViewer", "G1: Steven=>10");
- $this->addSelection("{$base}DataViewer", "G2: Kevin=>65");
-
- $this->click("{$base}selectBtn");
- $this->pause(800);
- $this->assertText("{$base}ALLog", '4- "test1", 10- "test2",');
- }
-}
-
+<?php
+
+class Ticket538TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket538');
+ $this->verifyTitle("Verifying Ticket 538", "");
+
+ $this->assertText("{$base}ALLog", 'waiting for response...');
+
+ $this->select("{$base}DataViewer", "empty :(");
+ $this->click("{$base}selectBtn");
+ $this->pause(800);
+
+ $this->assertText("{$base}ALLog", '0,');
+
+ $this->select("{$base}DataSelector", "select data set 2");
+ $this->pause(800);
+ $this->select("{$base}DataViewer", "G1: Steven=>10");
+ $this->addSelection("{$base}DataViewer", "G2: Kevin=>65");
+
+ $this->click("{$base}selectBtn");
+ $this->pause(800);
+ $this->assertText("{$base}ALLog", '4- "test1", 10- "test2",');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php
index 1698f1cb..62d2599d 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php
@@ -1,12 +1,12 @@
-<?php
-
-class Ticket54TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket54');
- $this->verifyTextPresent("|A|a|B|b|C|", "");
- }
-}
-
+<?php
+
+class Ticket54TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket54');
+ $this->verifyTextPresent("|A|a|B|b|C|", "");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket573TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket573TestCase.php
index 60a8d453..755d5dd6 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket573TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket573TestCase.php
@@ -1,14 +1,14 @@
-<?php
-
-class Ticket573TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket573');
- $this->verifyTitle("Verifying Ticket 573", "");
-
- $this->assertText('test1', '10.00');
- }
-}
-
+<?php
+
+class Ticket573TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket573');
+ $this->verifyTitle("Verifying Ticket 573", "");
+
+ $this->assertText('test1', '10.00');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
index f95af91b..5f3bd4d6 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
@@ -1,29 +1,29 @@
-<?php
-
-class Ticket578TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket578');
- $this->verifyTitle("Verifying Ticket 578", "");
-
- $this->assertText("{$base}label1", "Label 1");
- $this->click("{$base}button1", "");
- $this->pause(800);
- $this->assertText("{$base}label1", "Button 1 was clicked : ");
-
- $this->store($this->setTinymceHtml("{$base}text1", "helloworld"),"t2");
- $this->click("{$base}button1", "");
- $this->pause(800);
- $this->assertText("{$base}label1", "Button 1 was clicked : helloworld");
- }
-
- function setTinymceHtml($id, $text)
- {
- $tinymce = "this.browserbot.getCurrentWindow().tinyMCE.getInstanceById('{$id}')";
- return 'javascript{'."{$tinymce}.setHTML('{$text}') ? 0 : 1".'}';
- }
-}
-
+<?php
+
+class Ticket578TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket578');
+ $this->verifyTitle("Verifying Ticket 578", "");
+
+ $this->assertText("{$base}label1", "Label 1");
+ $this->click("{$base}button1", "");
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Button 1 was clicked : ");
+
+ $this->store($this->setTinymceHtml("{$base}text1", "helloworld"),"t2");
+ $this->click("{$base}button1", "");
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Button 1 was clicked : helloworld");
+ }
+
+ function setTinymceHtml($id, $text)
+ {
+ $tinymce = "this.browserbot.getCurrentWindow().tinyMCE.getInstanceById('{$id}')";
+ return 'javascript{'."{$tinymce}.setHTML('{$text}') ? 0 : 1".'}';
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php
index cbcb7bb2..2b3f671b 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket585TestCase.php
@@ -1,27 +1,27 @@
-<?php
-
-class Ticket585TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket585');
- $this->verifyTitle("Verifying Ticket 585", "");
-
- $this->assertText("error", "");
- $this->assertNotVisible("{$base}validator1");
-
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("error", "Success");
- $this->assertNotVisible("{$base}validator1");
-
- $this->type("{$base}test", "15-03-2007");
- $this->click("{$base}button1");
- $this->pause(800);
- $this->assertText("error", "Error");
- $this->assertVisible("{$base}validator1");
- }
-}
-
+<?php
+
+class Ticket585TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket585');
+ $this->verifyTitle("Verifying Ticket 585", "");
+
+ $this->assertText("error", "");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("error", "Success");
+ $this->assertNotVisible("{$base}validator1");
+
+ $this->type("{$base}test", "15-03-2007");
+ $this->click("{$base}button1");
+ $this->pause(800);
+ $this->assertText("error", "Error");
+ $this->assertVisible("{$base}validator1");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php
index 4b5619cd..037b9223 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket586TestCase.php
@@ -1,21 +1,21 @@
-<?php
-
-class Ticket586TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket586');
- $this->verifyTitle("Verifying Ticket 586", "");
-
- $this->assertText("{$base}label1", "Status");
- $this->clickAndWait("{$base}button1");
- $this->assertText("{$base}label1", "Button 1 Clicked!");
-
- $this->type("{$base}text1", "testing");
- $this->keyDownAndWait("{$base}text1", '\13');
- $this->assertText("{$base}label1", "Button 2 (default) Clicked!");
- }
-}
-
+<?php
+
+class Ticket586TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket586');
+ $this->verifyTitle("Verifying Ticket 586", "");
+
+ $this->assertText("{$base}label1", "Status");
+ $this->clickAndWait("{$base}button1");
+ $this->assertText("{$base}label1", "Button 1 Clicked!");
+
+ $this->type("{$base}text1", "testing");
+ $this->keyDownAndWait("{$base}text1", '\13');
+ $this->assertText("{$base}label1", "Button 2 (default) Clicked!");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
index 6624b5ba..f8255a2f 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php
@@ -1,47 +1,47 @@
-<?php
-
-class Ticket587TestCase extends SeleniumTestCase
-{
- function testKeyPress()
- {
- $this->skipBrowsers(self::INTERNET_EXPLORER);
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket587_reopened');
- $this->assertTitle("Verifying Ticket 587_reopened");
-
- $this->assertText($base."label1", "Label 1");
- $this->select($base."list1", "item 3");
- $this->pause(800);
- $this->select($base."list2", "value 3 - item 4");
- $this->pause(800);
- $this->assertText($base."label1", "Selection 2: value 3 - item 4");
-
- $this->keyPress($base.'text1', 't');
- $this->pause(800);
- $this->select($base."list2", "asd 3 - item 2");
- $this->pause(800);
- $this->assertText($base."label1", "Selection 2: asd 3 - item 2");
- }
-
- function testButtonClick()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket587_reopened');
- $this->assertTitle("Verifying Ticket 587_reopened");
-
- $this->assertText($base."label1", "Label 1");
- $this->select($base."list1", "item 3");
- $this->pause(800);
- $this->select($base."list2", "value 3 - item 4");
- $this->pause(800);
- $this->assertText($base."label1", "Selection 2: value 3 - item 4");
-
- $this->click($base.'button6');
- $this->pause(800);
- $this->select($base."list2", "asd 3 - item 2");
- $this->pause(800);
- $this->assertText($base."label1", "Selection 2: asd 3 - item 2");
- }
-}
-
+<?php
+
+class Ticket587TestCase extends SeleniumTestCase
+{
+ function testKeyPress()
+ {
+ $this->skipBrowsers(self::INTERNET_EXPLORER);
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket587_reopened');
+ $this->assertTitle("Verifying Ticket 587_reopened");
+
+ $this->assertText($base."label1", "Label 1");
+ $this->select($base."list1", "item 3");
+ $this->pause(800);
+ $this->select($base."list2", "value 3 - item 4");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: value 3 - item 4");
+
+ $this->keyPress($base.'text1', 't');
+ $this->pause(800);
+ $this->select($base."list2", "asd 3 - item 2");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: asd 3 - item 2");
+ }
+
+ function testButtonClick()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket587_reopened');
+ $this->assertTitle("Verifying Ticket 587_reopened");
+
+ $this->assertText($base."label1", "Label 1");
+ $this->select($base."list1", "item 3");
+ $this->pause(800);
+ $this->select($base."list2", "value 3 - item 4");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: value 3 - item 4");
+
+ $this->click($base.'button6');
+ $this->pause(800);
+ $this->select($base."list2", "asd 3 - item 2");
+ $this->pause(800);
+ $this->assertText($base."label1", "Selection 2: asd 3 - item 2");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php
index c25eb25f..d4a05fd8 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php
@@ -1,15 +1,15 @@
-<?php
-
-class Ticket653TestCase extends SeleniumTestCase
-{
- function test()
- {
- // Open with 'Friendly URL'
- $this->open('tickets/index.php/ticket653');
- $this->verifyTitle("Verifying Ticket 653", "");
-
- $this->assertText('textspan', 'This is the page for Ticket653');
- }
-}
-
+<?php
+
+class Ticket653TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ // Open with 'Friendly URL'
+ $this->open('tickets/index.php/ticket653');
+ $this->verifyTitle("Verifying Ticket 653", "");
+
+ $this->assertText('textspan', 'This is the page for Ticket653');
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php
index 70c52f35..8d705772 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php
@@ -1,23 +1,23 @@
-<?php
-
-class Ticket659TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- // Normal component (working)
- $this->open('tickets/index.php?page=ToggleTest');
- $this->assertText("${base}lbl", "Down");
- $this->click("${base}btn", "");
- $this->pause(800);
- $this->assertText("${base}lbl", "Up");
- // Extended component (not working)
- $this->open('tickets/index.php?page=Ticket659');
- $this->assertText("${base}lbl", "Down");
- $this->click("${base}btn", "");
- $this->pause(800);
- $this->assertText("${base}lbl", "Up");
- }
-}
-
+<?php
+
+class Ticket659TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ // Normal component (working)
+ $this->open('tickets/index.php?page=ToggleTest');
+ $this->assertText("${base}lbl", "Down");
+ $this->click("${base}btn", "");
+ $this->pause(800);
+ $this->assertText("${base}lbl", "Up");
+ // Extended component (not working)
+ $this->open('tickets/index.php?page=Ticket659');
+ $this->assertText("${base}lbl", "Down");
+ $this->click("${base}btn", "");
+ $this->pause(800);
+ $this->assertText("${base}lbl", "Up");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
index e7ff30b3..c8929693 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket700TestCase.php
@@ -1,72 +1,72 @@
-<?php
-class Ticket700TestCase extends SeleniumTestCase
-{
- function test()
- {
- // page: Home
- $this->open('tickets/index700.php');
- $this->clickAndWait('ctl0_Logout');
- $this->clickAndWait('pageHome');
- $this->assertTitle("Home");
- $this->assertTextPresent('|Param1: Set at app config|');
- $this->assertTextPresent('|Param2: Set at root|');
- $this->assertTextPresent('|Param3: default 3|');
- $this->assertTextPresent('|Param4: default 4|');
- $this->assertTextPresent('|Param5: Set at root|');
-
- // page: admin.Home
- $this->clickAndWait('pageAdminHome');
- $this->assertTitle('UserLogin');
- $this->type('ctl0_Main_Username','AdminUser');
- $this->type('ctl0_Main_Password','demo');
- $this->clickAndWait('ctl0_Main_LoginButton');
- $this->clickAndWait('pageAdminHome');
- $this->assertTitle('admin.Home');
- $this->assertTextPresent('|Param1: Set at app config|');
- $this->assertTextPresent('|Param2: Set at admin|');
- $this->assertTextPresent('|Param3: Set at admin|');
- $this->assertTextPresent('|Param4: Set at app config|');
- $this->assertTextPresent('|Param5: Set at app config|');
-
- // page: admin.Home2
- $this->clickAndWait('pageAdminHome2');
- $this->assertTitle('admin.Home2');
- $this->clickAndWait('ctl0_Logout');
- $this->clickAndWait('pageAdminHome2');
- $this->assertTitle('admin.Home2');
-
- // page: admin.users.Home
- $this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('UserLogin');
- $this->type('ctl0_Main_Username','NormalUser');
- $this->type('ctl0_Main_Password','demo');
- $this->clickAndWait('ctl0_Main_LoginButton');
- $this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('UserLogin');
- $this->type('ctl0_Main_Username','AdminUser');
- $this->type('ctl0_Main_Password','demo');
- $this->clickAndWait('ctl0_Main_LoginButton');
- $this->clickAndWait('pageAdminUsersHome');
- $this->assertTitle('admin.users.Home');
- $this->assertTextPresent('|Param1: Set at admin|');
- $this->assertTextPresent('|Param2: Set at admin.users|');
- $this->assertTextPresent('|Param3: default 3|');
- $this->assertTextPresent('|Param4: Set at admin|');
- $this->assertTextPresent('|Param5: Set at app config|');
-
- // page: admin.users.Home2
- $this->clickAndWait('pageAdminUsersHome2');
- $this->assertTitle('admin.users.Home2');
-
- // page: content.Home
- $this->clickAndWait('pageContentHome');
- $this->assertTitle('content.Home');
- $this->assertTextPresent('|Param1: Set at app config|');
- $this->assertTextPresent('|Param2: Set at root|');
- $this->assertTextPresent('|Param3: default 3|');
- $this->assertTextPresent('|Param4: default 4|');
- $this->assertTextPresent('|Param5: Set at app config|');
- $this->clickAndWait('ctl0_Logout');
- }
-}
+<?php
+class Ticket700TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ // page: Home
+ $this->open('tickets/index700.php');
+ $this->clickAndWait('ctl0_Logout');
+ $this->clickAndWait('pageHome');
+ $this->assertTitle("Home");
+ $this->assertTextPresent('|Param1: Set at app config|');
+ $this->assertTextPresent('|Param2: Set at root|');
+ $this->assertTextPresent('|Param3: default 3|');
+ $this->assertTextPresent('|Param4: default 4|');
+ $this->assertTextPresent('|Param5: Set at root|');
+
+ // page: admin.Home
+ $this->clickAndWait('pageAdminHome');
+ $this->assertTitle('UserLogin');
+ $this->type('ctl0_Main_Username','AdminUser');
+ $this->type('ctl0_Main_Password','demo');
+ $this->clickAndWait('ctl0_Main_LoginButton');
+ $this->clickAndWait('pageAdminHome');
+ $this->assertTitle('admin.Home');
+ $this->assertTextPresent('|Param1: Set at app config|');
+ $this->assertTextPresent('|Param2: Set at admin|');
+ $this->assertTextPresent('|Param3: Set at admin|');
+ $this->assertTextPresent('|Param4: Set at app config|');
+ $this->assertTextPresent('|Param5: Set at app config|');
+
+ // page: admin.Home2
+ $this->clickAndWait('pageAdminHome2');
+ $this->assertTitle('admin.Home2');
+ $this->clickAndWait('ctl0_Logout');
+ $this->clickAndWait('pageAdminHome2');
+ $this->assertTitle('admin.Home2');
+
+ // page: admin.users.Home
+ $this->clickAndWait('pageAdminUsersHome');
+ $this->assertTitle('UserLogin');
+ $this->type('ctl0_Main_Username','NormalUser');
+ $this->type('ctl0_Main_Password','demo');
+ $this->clickAndWait('ctl0_Main_LoginButton');
+ $this->clickAndWait('pageAdminUsersHome');
+ $this->assertTitle('UserLogin');
+ $this->type('ctl0_Main_Username','AdminUser');
+ $this->type('ctl0_Main_Password','demo');
+ $this->clickAndWait('ctl0_Main_LoginButton');
+ $this->clickAndWait('pageAdminUsersHome');
+ $this->assertTitle('admin.users.Home');
+ $this->assertTextPresent('|Param1: Set at admin|');
+ $this->assertTextPresent('|Param2: Set at admin.users|');
+ $this->assertTextPresent('|Param3: default 3|');
+ $this->assertTextPresent('|Param4: Set at admin|');
+ $this->assertTextPresent('|Param5: Set at app config|');
+
+ // page: admin.users.Home2
+ $this->clickAndWait('pageAdminUsersHome2');
+ $this->assertTitle('admin.users.Home2');
+
+ // page: content.Home
+ $this->clickAndWait('pageContentHome');
+ $this->assertTitle('content.Home');
+ $this->assertTextPresent('|Param1: Set at app config|');
+ $this->assertTextPresent('|Param2: Set at root|');
+ $this->assertTextPresent('|Param3: default 3|');
+ $this->assertTextPresent('|Param4: default 4|');
+ $this->assertTextPresent('|Param5: Set at app config|');
+ $this->clickAndWait('ctl0_Logout');
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php
index d497bb34..b001aa28 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php
@@ -1,21 +1,21 @@
-<?php
-class Ticket703TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket703.Ticket703');
- $this->assertTitle("Verifying Ticket703.Ticket703 703.703");
- // Start with an empty log
- $this->click($base.'ctl2');
- // Wait for callback to be lanched
- $this->pause(2000);
- $this->assertText($base.'logBox', "");
- $this->type($base.'logMessage', "Test of prado logging system");
- $this->click($base.'ctl0');
- $this->pause(800);
- $this->click($base.'ctl1');
- $this->assertTextPresent($base.'logBox', "Test of prado logging system");
- }
-}
+<?php
+class Ticket703TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket703.Ticket703');
+ $this->assertTitle("Verifying Ticket703.Ticket703 703.703");
+ // Start with an empty log
+ $this->click($base.'ctl2');
+ // Wait for callback to be lanched
+ $this->pause(2000);
+ $this->assertText($base.'logBox', "");
+ $this->type($base.'logMessage', "Test of prado logging system");
+ $this->click($base.'ctl0');
+ $this->pause(800);
+ $this->click($base.'ctl1');
+ $this->assertTextPresent($base.'logBox', "Test of prado logging system");
+ }
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket708TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket708TestCase.php
index 77978141..7c9f706b 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket708TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket708TestCase.php
@@ -1,28 +1,28 @@
-<?php
-class Ticket708TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket708');
- $this->assertTitle("Verifying Ticket 708");
-
- $this->click($base."grid_ctl1_RadioButton");
- $this->pause(800);
- $this->assertText($base."Result", "You have selected Radio Button #1");
-
- $this->click($base."grid_ctl2_RadioButton");
- $this->pause(800);
- $this->assertText($base."Result", "You have selected Radio Button #2");
-
- $this->click($base."grid_ctl3_RadioButton");
- $this->pause(800);
- $this->assertText($base."Result", "You have selected Radio Button #3");
-
- $this->click($base."grid_ctl4_RadioButton");
- $this->pause(800);
- $this->assertText($base."Result", "You have selected Radio Button #4");
- }
-
-}
+<?php
+class Ticket708TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket708');
+ $this->assertTitle("Verifying Ticket 708");
+
+ $this->click($base."grid_ctl1_RadioButton");
+ $this->pause(800);
+ $this->assertText($base."Result", "You have selected Radio Button #1");
+
+ $this->click($base."grid_ctl2_RadioButton");
+ $this->pause(800);
+ $this->assertText($base."Result", "You have selected Radio Button #2");
+
+ $this->click($base."grid_ctl3_RadioButton");
+ $this->pause(800);
+ $this->assertText($base."Result", "You have selected Radio Button #3");
+
+ $this->click($base."grid_ctl4_RadioButton");
+ $this->pause(800);
+ $this->assertText($base."Result", "You have selected Radio Button #4");
+ }
+
+}
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php
index 6d864899..346b08e3 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php
@@ -1,16 +1,16 @@
-<?php
-
-class Ticket72TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket72');
- $this->type("ctl0\$Content\$K1", "abc");
- $this->type("ctl0\$Content\$K2", "efg");
- $this->clickAndWait("//input[@type='submit' and @value='Send']", "");
- $this->verifyTextPresent("efg", "");
- $this->verifyTextNotPresent("abcefg", "");
- }
-}
-
+<?php
+
+class Ticket72TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket72');
+ $this->type("ctl0\$Content\$K1", "abc");
+ $this->type("ctl0\$Content\$K2", "efg");
+ $this->clickAndWait("//input[@type='submit' and @value='Send']", "");
+ $this->verifyTextPresent("efg", "");
+ $this->verifyTextNotPresent("abcefg", "");
+ }
+}
+
?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket93TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket93TestCase.php
index 6a286ffe..8d11f98b 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket93TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket93TestCase.php
@@ -1,16 +1,16 @@
-<?php
-/*
- * Created on 13/04/2006
- *
- */
-
-class Ticket93TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open('tickets/index.php?page=Ticket93');
- $this->verifyTextPresent("ValidationGroups without any inputs with grouping");
- }
-
-}
-?>
+<?php
+/*
+ * Created on 13/04/2006
+ *
+ */
+
+class Ticket93TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket93');
+ $this->verifyTextPresent("ValidationGroups without any inputs with grouping");
+ }
+
+}
+?>