Author: dsvyatobatsko
Date: 2009-03-03 09:07:09 -0500 (Tue, 03 Mar 2009)
New Revision: 12801
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_de_DE.properties
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/testI18N.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
Log:
RF-6168, RF-6174
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_de_DE.properties
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_de_DE.properties
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_de_DE.properties 2009-03-03
14:07:09 UTC (rev 12801)
@@ -0,0 +1,4 @@
+RICH_PICK_LIST_COPY_ALL_LABEL=kopieren alles
+RICH_PICK_LIST_COPY_LABEL=kopieren
+RICH_PICK_LIST_REMOVE_ALL_LABEL=l\u00f6schen alles
+RICH_PICK_LIST_REMOVE_LABEL=l\u00f6schen
\ No newline at end of file
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_de_DE.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/testI18N.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/pickList/testI18N.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-03-03
13:37:23 UTC (rev 12800)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/PickListTest.java 2009-03-03
14:07:09 UTC (rev 12801)
@@ -40,6 +40,8 @@
private final static String RESET_METHOD = "#{pickListBean.reset}";
+ private final static String I18N_TEST_URL =
"pages/pickList/testI18N.xhtml";
+
private static Map<String, String> params = new HashMap<String,
String>();
static {
@@ -153,6 +155,43 @@
tester.testRequiredAndRequiredMessageAttributes();
}
+ @Test
+ public void testImmediate(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, RESET_METHOD);
+ writeStatus("Test immediate attribute");
+ tester.testSubmitImmediate();
+ }
+
+ @Test
+ public void testSubmitImmediateWithExternalValidationFailed(Template template ) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+ writeStatus("Test submission of component with immediate = true and external
validation failed");
+ tester.testSubmitImmediateWithExternalValidationFailed();
+ }
+
+ @Test
+ public void testI18N(Template template) {
+ renderPage(I18N_TEST_URL, template, RESET_METHOD);
+
+ writeStatus("Check internationalization");
+
+ String pickListId = getParentId() + "_form:" + PICK_LIST;
+
+ String copyElemId = pickListId + COPY_BTN;
+ String copyAllElemId = pickListId + COPY_ALL_BTN;
+ String removeElemId = pickListId + REMOVE_BTN;
+ String removeAllElemId = pickListId + REMOVE_ALL_BTN;
+
+ writeStatus("This test page forces German locale. Check all labels are in
German");
+
+ AssertTextEquals(copyElemId, "kopieren");
+ AssertTextEquals(copyAllElemId, "kopieren alles");
+ AssertTextEquals(removeElemId, "l�schen");
+ AssertTextEquals(removeAllElemId, "l�schen alles");
+ }
+
private void assertButtonEnabled(String btnId) {
String id = getParentId() + "_form:" + PICK_LIST;
AssertVisible(id + btnId);
Show replies by date