Author: mvitenkov
Date: 2009-03-03 11:50:11 -0500 (Tue, 03 Mar 2009)
New Revision: 12810
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
testLocaleAttribute->testWeekDays method correction.
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-03-03
15:27:17 UTC (rev 12809)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-03-03
16:50:11 UTC (rev 12810)
@@ -87,13 +87,13 @@
static final List<String> WEEK_DAYS_RU = new ArrayList<String>();
static {
- WEEK_DAYS_RU.add("Пн");
- WEEK_DAYS_RU.add("Вт");
- WEEK_DAYS_RU.add("Ср");
- WEEK_DAYS_RU.add("Чт");
- WEEK_DAYS_RU.add("Пт");
- WEEK_DAYS_RU.add("Сб");
- WEEK_DAYS_RU.add("Вс");
+ WEEK_DAYS_RU.add("\u041F\u043D");
+ WEEK_DAYS_RU.add("\u0412\u0442");
+ WEEK_DAYS_RU.add("\u0421\u0440");
+ WEEK_DAYS_RU.add("\u0427\u0442");
+ WEEK_DAYS_RU.add("\u041F\u0442");
+ WEEK_DAYS_RU.add("\u0421\u0431");
+ WEEK_DAYS_RU.add("\u0412\u0441");
}
static final DateFormatSymbols symbolsUS = new DateFormatSymbols(Locale.US);
@@ -411,7 +411,7 @@
for (String weekday : WEEK_DAYS_RU) {
if (!weekDays.contains(weekday)) {
- Assert.fail("Internationalization failed. Weekdays should contain
["+weekday+"] in case of RU locale. But was: " + weekDays.toArray());
+ Assert.fail("Internationalization failed. Weekdays should contain
["+weekday+"] in case of RU locale. But was: " + weekDays.toArray());
}
}
}
@@ -667,7 +667,8 @@
checkCurrentDate(date, "'today' JS API function does not work. Date
should be swtiched to current date");
checkCurrentDate(c);
- //Test 'getData'
+
+ //Test 'getData'
https://jira.jboss.org/jira/browse/RF-4806
c = Calendar.getInstance();
String data = invokeFromComponent(calendarId, "getData", new
JSLiteral("new Date()"));
String expectedData = "data" + c.get(Calendar.DATE);