summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php
blob: edaf07201a98cad4ddf0baa6f8dfbda0c9e52e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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!')";
	}
}

?>