Index: pkg/unittest/test/mock_test.dart |
=================================================================== |
--- pkg/unittest/test/mock_test.dart (revision 13683) |
+++ pkg/unittest/test/mock_test.dart (working copy) |
@@ -23,7 +23,7 @@ |
makeTestLogEntry(String methodName, List args, int time, |
[String mockName]) { |
LogEntry e = new LogEntry(mockName, methodName, args, Action.IGNORE); |
- e.time = new Date.fromMillisecondsSinceEpoch(time, true); |
+ e.time = new Date.fromMillisecondsSinceEpoch(time, isUtc: true); |
return e; |
} |
@@ -219,11 +219,11 @@ |
test('Mocking: from,after,before,until', () { |
LogEntryList logList = makeTestLog(); |
LogEntryList log2; |
- Date t0 = new Date.fromMillisecondsSinceEpoch(0, true); |
- Date t1000 = new Date.fromMillisecondsSinceEpoch(1000, true); |
- Date t2000 = new Date.fromMillisecondsSinceEpoch(2000, true); |
- Date t3000 = new Date.fromMillisecondsSinceEpoch(3000, true); |
- Date t4000 = new Date.fromMillisecondsSinceEpoch(4000, true); |
+ Date t0 = new Date.fromMillisecondsSinceEpoch(0, isUtc: true); |
+ Date t1000 = new Date.fromMillisecondsSinceEpoch(1000, isUtc: true); |
+ Date t2000 = new Date.fromMillisecondsSinceEpoch(2000, isUtc: true); |
+ Date t3000 = new Date.fromMillisecondsSinceEpoch(3000, isUtc: true); |
+ Date t4000 = new Date.fromMillisecondsSinceEpoch(4000, isUtc: true); |
log2 = logList.before(t0); |
expect(log2.logs, hasLength(0)); |
@@ -305,11 +305,11 @@ |
}); |
test('Mocking: inplace from,after,before,until', () { |
- Date t0 = new Date.fromMillisecondsSinceEpoch(0, true); |
- Date t1000 = new Date.fromMillisecondsSinceEpoch(1000, true); |
- Date t2000 = new Date.fromMillisecondsSinceEpoch(2000, true); |
- Date t3000 = new Date.fromMillisecondsSinceEpoch(3000, true); |
- Date t4000 = new Date.fromMillisecondsSinceEpoch(4000, true); |
+ Date t0 = new Date.fromMillisecondsSinceEpoch(0, isUtc: true); |
+ Date t1000 = new Date.fromMillisecondsSinceEpoch(1000, isUtc: true); |
+ Date t2000 = new Date.fromMillisecondsSinceEpoch(2000, isUtc: true); |
+ Date t3000 = new Date.fromMillisecondsSinceEpoch(3000, isUtc: true); |
+ Date t4000 = new Date.fromMillisecondsSinceEpoch(4000, isUtc: true); |
LogEntryList logList = makeTestLog().before(t0, true); |
expect(logList.logs, hasLength(0)); |