summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataGrid1TestCase.php
blob: d20a79552634289d8369bfa1da547cfde5f2a4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

class DataGrid1TestCase extends SeleniumTestCase
{
	function test()
	{
		$this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample1&amp;notheme=true", "");

		// verify if all required texts are present
		$this->verifyTextPresent('id','');
		$this->verifyTextPresent('name','');
		$this->verifyTextPresent('quantity','');
		$this->verifyTextPresent('price','');
		$this->verifyTextPresent('imported','');
		$this->verifyTextPresent('ITN001','');
		$this->verifyTextPresent('Motherboard','');
		$this->verifyTextPresent('100','');
		$this->verifyTextPresent('true','');
		$this->verifyTextPresent('ITN019','');
		$this->verifyTextPresent('Speaker','');
		$this->verifyTextPresent('35','');
		$this->verifyTextPresent('65','');
		$this->verifyTextPresent('false','');

		// verify specific table tags
		$this->verifyElementPresent("ctl0_body_DataGrid");
		$this->verifyAttribute("ctl0_body_DataGrid@rules","all");
		$this->verifyAttribute("ctl0_body_DataGrid@cellpadding","2");
		$this->verifyAttribute("ctl0_body_DataGrid@cellspacing","0");
	}
}

?>