diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php')
| -rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php | 58 | 
1 files changed, 58 insertions, 0 deletions
| diff --git a/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php b/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php new file mode 100644 index 00000000..edaf0720 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php @@ -0,0 +1,58 @@ +<?php + +class ControlAdapterTest extends TPage +{ +	function change_enabled() +	{ +		$this->button1->Enabled = !$this->button1->Enabled; +	} +	 +	function change_visible() +	{ +		$this->button1->Visible = !$this->button1->Visible; +	} +	 +	function change_tooltip() +	{ +		$this->button1->ToolTip = "hello world"; +	} +	 +	function change_tabindex() +	{ +		$this->button1->tabIndex = 10; +	} +	 +	function change_accesskey() +	{ +		$this->button1->accessKey = "F"; +	} + +	function change_bgcolor1() +	{ +		$this->button1->BackColor = "orange"; +		$this->button1->ForeColor="white"; +		$this->button1->Font->Bold = true; +		$this->button1->Font->Size = "2em"; +	} + +	 +	function change_bgcolor2() +	{ +		$this->button2->BackColor = "red"; +		$this->button2->ForeColor="white"; +		$this->button2->Font->Bold = true; +		$this->button2->Font->Size = 14; +	} +	 +	function change_attributes1() +	{ +		$this->button1->Attributes['onclick'] = "alert('haha!')"; +	} + +	function change_attributes2() +	{ +		$this->button2->Attributes['onclick'] = "alert('baz!')"; +	} +} + +?>
\ No newline at end of file | 
