blob: c733a7fd9dd7381e0af8edeb7d02fb8acd300188 (
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
58
59
60
61
62
|
<?php
class CallbackAdapterTestCase extends SeleniumTestCase
{
function test()
{
$this->skipBrowsers(self::INTERNET_EXPLORER);
$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->targetBrowsers(self::INTERNET_EXPLORER);
$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');
}
}
?>
|