IDEA-71048 (test fixed one more time)

This commit is contained in:
Roman Shevchenko
2014-04-01 19:30:55 +02:00
parent d783d869a3
commit 70d6d69ef8
2 changed files with 4 additions and 6 deletions
@@ -29,9 +29,7 @@ import java.io.InputStreamReader;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.*;
import static org.junit.Assert.assertEquals;
@@ -62,7 +60,8 @@ public class DateFormatUtilTest {
assertEquals("17:10:15", printTimeForLocale("de_DE.UTF-8", Clock.getTime()));
}
else if (SystemInfo.isWinVistaOrNewer) {
assertEquals(printWindowsTime(Clock.getTime()), DateFormatUtil.formatTimeWithSeconds(Clock.getTime()));
long time = new Date().getTime();
assertEquals(printWindowsTime(time), DateFormatUtil.formatTimeWithSeconds(time));
}
else {
assertEquals(DateFormat.getTimeInstance(DateFormat.SHORT).format(Clock.getTime()),
@@ -1,3 +1,2 @@
var dt = new Date();
dt.setTime(WSH.Arguments(0));
var dt = new Date(parseInt(WSH.Arguments(0)));
WSH.Echo(dt.toLocaleTimeString());