summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php
blob: c5367612d4c4d5e8f05e6951296da87fc37c2dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

class DelayedCallbackTestCase extends SeleniumTestCase
{
	function test()
	{
		$this->open("active-controls/index.php?page=DelayedCallback");
		$this->verifyTextPresent("Delayed Callback Test");

		$this->assertText("status", "");
		$this->click("button1");
		$this->click("button2");

		$this->pause("5000");
		$this->assertText("status", "Callback 1 returned after 4s");
		$this->pause("3000");
		$this->assertText("status", "Callback 2 delayed 2s");

	}
}

?>