summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page
diff options
context:
space:
mode:
authorwei <>2006-01-20 00:54:50 +0000
committerwei <>2006-01-20 00:54:50 +0000
commit947642a554584255e07ee33196d9a0ca87388f65 (patch)
treef7b075e0306e119e283c0a7b1c0aa186b62581cd /tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page
parent66c5465f3d55ea1ce605e2c636adf87ae14b4d95 (diff)
tests
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page
new file mode 100644
index 00000000..7585bdbc
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page
@@ -0,0 +1,15 @@
+<com:TContent ID="Content">
+<com:TForm>
+ <com:TPanel DefaultButton="Button2" Width="400px">
+ This is panel content with a <com:TLabel Text="label" Font.Italic="true" />
+ and two buttons: <br/>
+ <com:TButton ID="Button1" Text="button1" Click="buttonClicked" />
+ <com:TButton ID="Button2" Text="button2" Click="buttonClicked" />
+ <com:TLabel ID="Result" ForeColor="red" />
+ <br/>
+ When you change focus to the panel and hit 'enter' key, <tt>button2</tt>
+ will be clicked because it is set as the default button of the panel.
+ </com:TPanel>
+ <com:TJavascriptLogger />
+</com:TForm>
+</com:TContent> \ No newline at end of file