com.google.gwt.junit.client .GWTTestCase com.google.gwt.emultest.java.util .DateTest DateTest public class DateTest extends GWTTestCase (Code) Tests for GWT's emulation of the JRE Date class.
DAY_MILLISECONDS_SHIFT final public static long DAY_MILLISECONDS_SHIFT (Code)
SECOND_MILLISECONDS_SHIFT final public static long SECOND_MILLISECONDS_SHIFT (Code)
TO_STRING_PATTERN final public static String TO_STRING_PATTERN (Code)
getModuleName public String getModuleName()(Code) Sets module name so that javascript compiler can operate
testAfter public void testAfter()(Code) Testing for public boolean java.util.Date.after(java.util.Date)*
testBefore public void testBefore()(Code) Testing for public boolean java.util.Date.before(java.util.Date)*
testClone public void testClone()(Code) Testing for public java.lang.Object java.util.Date.clone()*
testCompareTo public void testCompareTo()(Code) Testing for public int java.util.Date.compareTo(java.util.Date)*
testGetDate public void testGetDate()(Code) Testing for public int java.util.Date.getDate()*
testGetDay public void testGetDay()(Code) Testing for public int java.util.Date.getDay()*
testGetHours public void testGetHours()(Code) Testing for public int java.util.Date.getHours()
testGetMinutes public void testGetMinutes()(Code) Testing for public int java.util.Date.getMinutes()*
testGetMonth public void testGetMonth()(Code) Testing for public int java.util.Date.getMonth()*
testGetSeconds public void testGetSeconds()(Code) Testing for public int java.util.Date.getSeconds()*
testGetTime public void testGetTime()(Code) Testing for public long java.util.Date.getTime()*
testGetTimezoneOffset public void testGetTimezoneOffset()(Code) Testing for public int java.util.Date.getTimezoneOffset()*
testGetYear public void testGetYear()(Code) Testing for public int java.util.Date.getYear()*
testInvalidDateForMonth public void testInvalidDateForMonth()(Code) Testing to that if we set the day number to 31 for a month that only has 30
days in it, that the date rolls over to the first day of the next month in
sequence.
testParse public void testParse()(Code) Testing for public static long java.util.Date.parse(java.lang.String)*
testSetDate public void testSetDate()(Code) Testing for public void java.util.Date.setDate(int)*
testSetHours public void testSetHours()(Code) Testing for public void java.util.Date.setHours(int)*
testSetInvalidMonthForDate public void testSetInvalidMonthForDate()(Code) We want to test to see that if we are currently in a month with 31 days and
we set the month to one which has less than 31 days, that the month
returned by the date class will be one higher than the month that we
originally set (according to the spec of java.util.date)
testSetInvalidYearForDate public void testSetInvalidYearForDate()(Code) We want to test to see that if the date is Feb 29th (in a leap year) and we
set the year to a non-leap year, that the month and day will roll over to
March 1st.
testSetMinutes public void testSetMinutes()(Code) Testing for public void java.util.Date.setMinutes(int)*
testSetMonth public void testSetMonth()(Code) Testing for public void java.util.Date.setMonth(int)*
testSetSeconds public void testSetSeconds()(Code) Testing for public void java.util.Date.setSeconds(int)*
testSetTime public void testSetTime()(Code) Testing for public void java.util.Date.setTime(long)*
testSetValidLeapYearForDate public void testSetValidLeapYearForDate()(Code) We want to test to see that if the date is Feb 29th (in a leap year) and we
set the year to another leap year, that the month and day will be retained
testSetYear public void testSetYear()(Code) Testing for public void java.util.Date.setYear(int)*
testToGMTString public void testToGMTString()(Code) Testing for public java.lang.String java.util.Date.toGMTString()*
testToLocaleString public void testToLocaleString()(Code) Testing for public java.lang.String java.util.Date.toLocaleString()*
testToString public void testToString()(Code) Date docs specify an exact format for toString()
testUTC public void testUTC()(Code) Testing for public static long java.util.Date.UTC(int,int,int,int,int,int)*