From d93af5633b1459cb670904b16c914e7313bbc576 Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Mon, 11 Jan 2010 12:48:47 +0000 Subject: Fixed Issue#216 --- .../tickets/protected/pages/Issue216.page | 15 ++++++++++++ .../tickets/protected/pages/Issue216.php | 14 +++++++++++ .../tickets/tests/Issue216TestCase.php | 28 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Issue216.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Issue216.php create mode 100644 tests/FunctionalTests/tickets/tests/Issue216TestCase.php (limited to 'tests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue216.page b/tests/FunctionalTests/tickets/protected/pages/Issue216.page new file mode 100644 index 00000000..2efff728 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Issue216.page @@ -0,0 +1,15 @@ + +

TTabPanel doesn't preserve active tab on callback request

+ + + +

This is Tab 1

+
+ +

This is Tab 2

+
+
+ + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Issue216.php b/tests/FunctionalTests/tickets/protected/pages/Issue216.php new file mode 100644 index 00000000..15491e2e --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Issue216.php @@ -0,0 +1,14 @@ +result->setText('Tab ActiveIndex is : '.$this->tabpanel->ActiveViewIndex); + + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Issue216TestCase.php b/tests/FunctionalTests/tickets/tests/Issue216TestCase.php new file mode 100644 index 00000000..1cfdf0cd --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Issue216TestCase.php @@ -0,0 +1,28 @@ +open('tickets/index.php?page=Issue216'); + $this->assertTextPresent('TTabPanel doesn\'t preserve active tab on callback request'); + + $this->assertVisible('ctl0_Content_tab1'); + + $this->click("ctl0_Content_btn1"); + $this->pause(800); + + $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 0"); + + $this->click("ctl0_Content_tab2_0"); + $this->pause(800); + + $this->assertVisible('ctl0_Content_tab2'); + + $this->click("ctl0_Content_btn1"); + $this->pause(800); + $this->assertText("ctl0_Content_result", "Tab ActiveIndex is : 1"); + } +} + +?> \ No newline at end of file -- cgit v1.2.3