summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
blob: 1b5ffea28c3aeeba5cefaf73d4b815b070bfdf32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class CustomTemplateTestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base='ctl0_Content_';
		$this->url('active-controls/index.php?page=CustomTemplateControlTest');
		$this->assertSourceContains('Add Dynamic Custom TTemplateControl Test');
		$this->assertText("{$base}label1", 'Label 1');

		$this->type("{$base}foo", 'Foo Bar!');
		$this->byId("{$base}button2")->click();
		$this->pause(800);

		$this->assertVisible("{$base}ctl0_ThePanel");
		$this->assertSourceContains("Client ID: {$base}ctl0_ThePanel");

		$this->assertText("{$base}label1", 'Button 1 was clicked Foo Bar! using callback!... and this is the textbox text: Foo Bar!');
	}
}