From 1f5f5acf9011763a8b72748219f8275db527387e Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 5 Aug 2006 04:59:37 +0000 Subject: Fixed #271 --- .../features/protected/pages/FocusControl.page | 46 ++++++++++++++++++++++ .../features/protected/pages/FocusControl.php | 17 ++++++++ 2 files changed, 63 insertions(+) create mode 100644 tests/FunctionalTests/features/protected/pages/FocusControl.page create mode 100644 tests/FunctionalTests/features/protected/pages/FocusControl.php (limited to 'tests/FunctionalTests/features/protected') diff --git a/tests/FunctionalTests/features/protected/pages/FocusControl.page b/tests/FunctionalTests/features/protected/pages/FocusControl.page new file mode 100644 index 00000000..af414c3a --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/FocusControl.page @@ -0,0 +1,46 @@ + + + + + + + + + + + + +

+a + +

+ +

+b + +

+ +

+c + +

+ +

+d +

+ +

+e + +

+ +

+f +

+ +

+g + +

+ +
\ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/FocusControl.php b/tests/FunctionalTests/features/protected/pages/FocusControl.php new file mode 100644 index 00000000..d78f28c4 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/FocusControl.php @@ -0,0 +1,17 @@ +list->SelectedIndex; + if($selected >= 0) + { + $id = "button".($selected+1); + $controlID = $this->{$id}->ClientID; + $this->ClientScript->registerFocusControl($controlID); + } + } +} + +?> \ No newline at end of file -- cgit v1.2.3