blob: d1496ef432f081739c134a8ee1100504f628bf76 (
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
|
<?php
class CalculatorTestCase extends PradoGenericSelenium2Test
{
function test()
{
$base='ctl0_Content_';
$this->url("active-controls/index.php?page=Calculator");
$this->assertSourceContains("Callback Enabled Calculator");
$this->assertNotVisible("{$base}summary");
$this->byId("{$base}sum")->click();
$this->assertVisible("{$base}summary");
$this->type("{$base}a", "2");
$this->type("{$base}b", "5");
$this->byId("{$base}sum")->click();
$this->pause(500);
$this->assertNotVisible("{$base}summary");
$this->assertValue("{$base}c", "7");
}
}
|