Author: konstantin.mishin
Date: 2008-11-11 06:30:09 -0500 (Tue, 11 Nov 2008)
New Revision: 11073
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_en_US.properties
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java
Log:
RF-4890
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_en_US.properties
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_en_US.properties 2008-11-11
01:41:36 UTC (rev 11072)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/resources/org/ajax4jsf/message/resources_en_US.properties 2008-11-11
11:30:09 UTC (rev 11073)
@@ -1,3 +1,4 @@
test=It is sample message from resourceBundle
error=Error was occured.
-RICH_LIST_SHUTTLE_COPY_ALL_LABEL=Copy All Items
\ No newline at end of file
+RICH_LIST_SHUTTLE_COPY_ALL_LABEL=Copy All Items
+RICH_SHUTTLES_TOP_LABEL=Move to top
\ No newline at end of file
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-11-11
01:41:36 UTC (rev 11072)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-11-11
11:30:09 UTC (rev 11073)
@@ -405,7 +405,7 @@
Assert.assertEquals(getTextById(copyId), "Copy", "The text on the
button must be visible.");
Assert.assertEquals(getTextById(removeId), "Remove", "The text on
the button must be visible.");
Assert.assertEquals(getTextById(removeAllId), "Remove All", "The
text on the button must be visible.");
- Assert.assertEquals(getTextById(firstId), "First", "The text on
the button must be visible.");
+ Assert.assertEquals(getTextById(firstId), "Move to top", "The text
on the button must be visible.");
Assert.assertEquals(getTextById(upId), "Up", "The text on the
button must be visible.");
Assert.assertEquals(getTextById(downId), "Down", "The text on the
button must be visible.");
Assert.assertEquals(getTextById(lastId), "Last", "The text on the
button must be visible.");
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-11-11
01:41:36 UTC (rev 11072)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-11-11
11:30:09 UTC (rev 11073)
@@ -71,6 +71,16 @@
private String showButtonLabelsId;
/**
+ * check internationalization
+ */
+ @Test
+ public void testInternationalization(Template template) {
+ renderPage(template, initMethod);
+ initFields();
+ Assert.assertEquals(selenium.getText(firstButtonDisabled), "Move to
top");
+ }
+
+ /**
* Check control facets
*/
@Test
Show replies by date