summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php
blob: c95b94d7a1a46d54897cdde2e0f2b129e5d11358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

//New Test
class ImageTestCase extends SeleniumTestCase
{
	function test ()
	{
		$this->open("../../demos/quickstart/index.php?page=Controls.Samples.TImage.Home&amp;notheme=true&amp;lang=en", "");

		$this->verifyTitle("PRADO QuickStart Sample", "");

		//$this->verifyElementPresent("//img[contains(@src,'/hello_world.gif') and @alt='']");
		$this->verifyElementPresent("//img[contains(@src,'/hello_world.gif') and @alt='Hello World!']");
		$this->verifyTextPresent("Hello World! Hello World! Hello World!", "");
		//$this->verifyElementPresent("//img[contains(@src,'/hello_world.gif') and @align='baseline']");
		//$this->verifyElementPresent("//img[contains(@src,'/hello_world.gif') and contains(@longdesc,'HelloWorld.html')]");
	}
}

?>