summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/ActiveImageButtonTestCase.php
blob: 477f7fea5ba9f9581506bc1783499ba4299eba12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

class ActiveImageButtonTestCase extends SeleniumTestCase
{
	function test()
	{
		$this->open("active-controls/index.php?page=ActiveImageButtonTest");
		$this->assertTextPresent("TActiveImageButton Functional Test");
		$this->assertText("label1", "Label 1");
		$this->click("image1");
		$this->pause(800);
		//unable to determine mouse position
		$this->assertTextPresent("regexp:Image clicked at x=\d+, y=\d+");
	}
}

?>