diff options
author | wei <> | 2006-05-05 00:45:35 +0000 |
---|---|---|
committer | wei <> | 2006-05-05 00:45:35 +0000 |
commit | f21d3433721308f5d0693f44bbfed56f7b2ecc2d (patch) | |
tree | 96f10eb302f0a156ebc237d9ab0949986c4f469e /tests | |
parent | 42df6f47862c2f1495ded49f758dbc46f9d9e930 (diff) |
Adding TActiveLabel
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page | 10 | ||||
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page index 87522f72..2d43bb82 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page @@ -2,9 +2,9 @@ <h1>TCallback Demo</h1>
<com:TClientScript UsingPradoScripts="ajax" />
<com:TCallback id="control1"
- OnCallback="control1onCallback">
- <com:TButton id="button2" Text="Hello" Visible="false"/>
- </com:TCallback>
+ OnCallback="control1onCallback" />
+
+ <com:TActiveLabel id="label1" Text="Name:" />
<com:TTextBox id="text1" />
<com:TCheckBoxList>
@@ -12,10 +12,6 @@ <com:TListItem Text="Two" />
</com:TCheckBoxList>
- <com:TPanel id="panel2" Visible="false">
- asdad <com:TCheckBox id="checkbox1" />
- </com:TPanel>
-
<input type="hidden" name="PRADO_CALLBACK_TARGET" value="<%= $this->control1->UniqueID %>" />
<com:TButton id="button1" Text="Submit" CausesValidation="false" />
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php index 43d93d30..8323667a 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php @@ -7,9 +7,7 @@ class ActiveControl extends TPage {
public function control1onCallback($sender, $param)
{
- $this->button2->setVisible(true);
- $this->button2->setText("Time is ".time());
- $this->control1->render($param->getOutput());
+ $this->label1->setText("The time is ".time());
}
}
?>
|