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

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

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

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