From b7f95ce37ae577e95a81e64aa2aaf3e2e698109d Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 5 Aug 2006 21:34:30 +0000 Subject: merge from 3.0 branch till 1329. --- .../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