From 3c24d31c69dffb6f65214b6d383d446ac122ff14 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 13 Dec 2006 10:07:37 +0000 Subject: Fixed #488. --- .../tickets/protected/pages/Ticket484.page | 10 ++++++ .../tickets/protected/pages/Ticket484.php | 30 ++++++++++++++++++ .../tickets/tests/Ticket488TestCase.php | 37 ++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket484.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket484.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket488TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.page b/tests/FunctionalTests/tickets/protected/pages/Ticket484.page new file mode 100644 index 00000000..0b1b2c5f --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.page @@ -0,0 +1,10 @@ + + +

TActiveButton Functional Test

+ + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php new file mode 100644 index 00000000..813ccc23 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php @@ -0,0 +1,30 @@ +Text = "Label ".$i; + $this->Controls[] = $ctl; + } + } + + function button2_onclick($sender, $param) + { + $this->label1->Text = "Button 1 was clicked "; + } + + function button2_oncallback($sender, $param) + { + $this->label1->Text .= "using callback!"; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php new file mode 100644 index 00000000..c54b4170 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket488TestCase.php @@ -0,0 +1,37 @@ +open('active-controls/index.php?page=CustomValidatorByPass'); + $this->assertTextPresent('Custom Login'); + $this->assertNotVisible('loginBox'); + $this->click("showLogin"); + $this->assertVisible("loginBox"); + $this->assertNotVisible("validator1"); + $this->assertNotVisible("validator2"); + + $this->click("checkLogin"); + $this->pause(800); + $this->assertVisible("validator1"); + $this->assertVisible("validator2"); + + $this->type('Username', 'tea'); + $this->type('Password', 'mmama'); + + $this->click("checkLogin"); + $this->pause(800); + $this->assertNotVisible("validator1"); + $this->assertVisible("validator2"); + + $this->type('Password', 'test'); + $this->pause(800); + $this->assertNotVisible("validator1"); + $this->assertNotVisible("validator2"); + $this->assertNotVisible('loginBox'); + } + +} + +?> \ No newline at end of file -- cgit v1.2.3