summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CallbackAdapterTestCase.php
blob: e49eb513dbbe93e276cf375beca68d0e4197315e (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
<?php

class CallbackAdapterTestCase extends SeleniumTestCase
{
	function test()
	{
		$this->open("active-controls/index.php?page=ControlAdapterTest");
		$this->assertTextPresent('Control Adapter - State Tracking Tests');

		$this->click('button2');
		$this->assertAlert('ok');

		$this->click('test6');
		$this->pause(800);
		$this->click('test7');
		$this->pause(800);
		$this->click('test8');
		$this->pause(800);
		$this->click('test9');
		$this->pause(800);

		$this->click('button1');
		$this->assertAlert('haha!');

		$this->click('button2');
		$this->assertAlert('ok');
		$this->assertAlert('baz!');

	}
}

?>