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
|
<?php
class QuickstartDataGrid1TestCase extends PradoGenericSelenium2Test
{
function test()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TDataGrid.Sample1&notheme=true&lang=en");
// verify if all required texts are present
$this->assertContains('id', $this->source());
$this->assertContains('name', $this->source());
$this->assertContains('quantity', $this->source());
$this->assertContains('price', $this->source());
$this->assertContains('imported', $this->source());
$this->assertContains('ITN001', $this->source());
$this->assertContains('Motherboard', $this->source());
$this->assertContains('100', $this->source());
$this->assertContains('true', $this->source());
$this->assertContains('ITN019', $this->source());
$this->assertContains('Speaker', $this->source());
$this->assertContains('35', $this->source());
$this->assertContains('65', $this->source());
$this->assertContains('false', $this->source());
// verify specific table tags
$this->assertElementPresent("ctl0_body_DataGrid");
$this->assertAttribute("ctl0_body_DataGrid@cellpadding","2");
}
}
|