blob: 39fa5ec9b66c5745e93d5d5a6fefcde3a25135c5 (
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
|
<?php
class CallbackOptionsTestCase extends SeleniumTestCase
{
function test()
{
$this->open("active-controls/index.php?page=CallbackOptionsTest");
$this->verifyTextPresent("TCallbackOptions Test");
$this->assertText("label1", "Label 1");
$this->assertText("label2", "Label 2");
$this->assertText("label3", "Label 3");
$this->click("button1");
$this->pause(800);
$this->assertText("label1", "Button 1 has returned");
$this->assertText("label2", "Label 2");
$this->assertText("label3", "Label 3");
$this->click("button2");
$this->pause(800);
$this->assertText("label1", "Button 1 has returned");
$this->assertText("label2", "Button 2 has returned");
$this->assertText("label3", "Label 3");
$this->click("button3");
$this->pause(800);
$this->assertText("label1", "Button 1 has returned");
$this->assertText("label2", "Button 2 has returned");
$this->assertText("label3", "Button 3 has returned");
}
}
?>
|