summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/ImageTestCase.php
blob: f3bd4775297cb0b77bfa72bb974bb210fc49fd22 (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->assertEquals("PRADO QuickStart Sample", $this->title());

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