Author: abelevich
Date: 2009-04-01 06:54:21 -0400 (Wed, 01 Apr 2009)
New Revision: 13337
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
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-04-01
10:49:16 UTC (rev 13336)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-04-01
10:54:21 UTC (rev 13337)
@@ -334,6 +334,7 @@
selenium.click("//td[@id='" + calendarHeaderId +
"']/table/tbody/tr/td[@class='rich-calendar-tool'][3]/div");
Assert.assertFalse(getCalendarDate().equals(date), "Current date has not been
changed after next month clicked");
c.set(Calendar.MONTH, c.get(Calendar.MONTH) + 1);
+ c.set(Calendar.DATE, 1);
return c;
}
@@ -342,6 +343,7 @@
selenium.click("//td[@id='" + calendarHeaderId +
"']/table/tbody/tr/td[@class='rich-calendar-tool'][2]/div");
Assert.assertFalse(getCalendarDate().equals(date), "Current date has not been
changed after previous month clicked");
c.set(Calendar.MONTH, c.get(Calendar.MONTH) - 1);
+ c.set(Calendar.DATE, 1);
return c;
}