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

class ActiveImageButtonTestCase extends PradoGenericSelenium2Test
{
	function test()
	{
		$base='ctl0_Content_';
		$this->url("active-controls/index.php?page=ActiveImageButtonTest");
		$this->assertContains("TActiveImageButton Functional Test", $this->source());
		$this->assertText("{$base}label1", "Label 1");
		$this->byId("{$base}image1")->click();
		$this->pause(800);
		//unable to determine mouse position
		$this->assertRegExp('/Image clicked at x=\d+, y=\d+/', $this->source());
	}
}