blob: 76d8b9af6ec621c4c5f603ed8c70fb833e25620a (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?php
class CallbackAdapterTestCase extends PradoGenericSeleniumTest
{
function test()
{
$this->open("active-controls/index.php?page=ControlAdapterTest");
$this->assertTextPresent('Control Adapter - State Tracking Tests');
$this->click('button2');
$this->assertAlert('ok');
$this->click('test6');
$this->pause(800);
$this->click('test7');
$this->pause(800);
$this->click('test8');
$this->pause(800);
$this->click('test9');
$this->pause(800);
$this->click('button1');
$this->assertAlert('haha!');
$this->click('button2');
$this->assertAlert('ok');
$this->assertAlert('baz!');
}
function testIE()
{
$this->open("active-controls/index.php?page=ControlAdapterTest");
$this->assertTextPresent('Control Adapter - State Tracking Tests');
$this->click('button2');
$this->assertAlert('ok');
$this->click('test6');
$this->pause(800);
$this->click('test7');
$this->pause(800);
$this->click('test8');
$this->pause(800);
$this->click('test9');
$this->pause(800);
$this->click('button1');
$this->assertAlert('haha!');
//IE alerts in diffrent order
$this->click('button2');
$this->assertAlert('baz!');
$this->assertAlert('ok');
}
}
|