diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-11-09 12:22:57 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-11-09 12:22:57 +0000 |
commit | c8b8083c5231c8923add382eec7e2ad7c1db031c (patch) | |
tree | efd20a26e9e862f02764d9fae57a21499e66a87f | |
parent | 0a3d01ed0952aa7d155ea31d599a1a21b26e9060 (diff) | |
download | vaadin-framework-c8b8083c5231c8923add382eec7e2ad7c1db031c.tar.gz vaadin-framework-c8b8083c5231c8923add382eec7e2ad7c1db031c.zip |
Enhanced datefield test, see bug #1150
svn changeset:2776/svn branch:trunk
-rw-r--r-- | src/com/itmill/toolkit/tests/TestDateField.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/TestDateField.java b/src/com/itmill/toolkit/tests/TestDateField.java index ba1c6a1235..1cf75be5c4 100644 --- a/src/com/itmill/toolkit/tests/TestDateField.java +++ b/src/com/itmill/toolkit/tests/TestDateField.java @@ -1,5 +1,7 @@ package com.itmill.toolkit.tests;
+import java.util.Locale;
+
import com.itmill.toolkit.terminal.ClassResource;
import com.itmill.toolkit.terminal.ErrorMessage;
import com.itmill.toolkit.terminal.UserError;
@@ -37,6 +39,19 @@ public class TestDateField extends CustomComponent { df.setImmediate(true);
// FIXME: bug #1138 this makes datefield to render with unknown component (UIDL tree debug)
df.addStyleName("thisShouldBeHarmless");
+
+ // Another test: locale
+ DateField df1 = new DateField();
+ main.addComponent(df1);
+ df1.setLocale(new Locale("en","US"));
+
+ DateField df2 = new DateField();
+ main.addComponent(df2);
+ df2.setLocale(new Locale("de","DE"));
+
+ DateField df3 = new DateField();
+ main.addComponent(df3);
+ df3.setLocale(new Locale("ru","RU"));
}
public void attach() {
|