Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: packages/quiver/test/time/clock_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/quiver/test/testing/equality/equality_test.dart ('k') | packages/quiver/tool/travis.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/quiver/test/time/clock_test.dart
diff --git a/packages/quiver/test/time/clock_test.dart b/packages/quiver/test/time/clock_test.dart
index bf6a55cf22bad57ade2f26c6ee10173f269540bf..08c026ad03a475f4fa4bb6237fb01da706ba0d9f 100644
--- a/packages/quiver/test/time/clock_test.dart
+++ b/packages/quiver/test/time/clock_test.dart
@@ -43,8 +43,12 @@ main() {
expect(
new DateTime.now().difference(new Clock().now()).inMilliseconds.abs(),
lessThan(epsilon));
- expect(new DateTime.now().difference(const Clock().now()).inMilliseconds
- .abs(), lessThan(epsilon));
+ expect(
+ new DateTime.now()
+ .difference(const Clock().now())
+ .inMilliseconds
+ .abs(),
+ lessThan(epsilon));
});
test('should return time provided by custom TimeFunction', () {
@@ -61,31 +65,35 @@ main() {
});
test('should return time Duration ago', () {
- expect(subject.agoBy(new Duration(days: 366)), new DateTime(2012));
+ expect(subject.agoBy(const Duration(days: 366)), new DateTime(2012));
});
test('should return time Duration from now', () {
- expect(subject.fromNowBy(new Duration(days: 365)), new DateTime(2014));
+ expect(subject.fromNowBy(const Duration(days: 365)), new DateTime(2014));
});
test('should return time parts ago', () {
- expect(subject.ago(
- days: 1,
- hours: 1,
- minutes: 1,
- seconds: 1,
- milliseconds: 1,
- microseconds: 1000), new DateTime(2012, 12, 30, 22, 58, 58, 998));
+ expect(
+ subject.ago(
+ days: 1,
+ hours: 1,
+ minutes: 1,
+ seconds: 1,
+ milliseconds: 1,
+ microseconds: 1000),
+ new DateTime(2012, 12, 30, 22, 58, 58, 998));
});
test('should return time parts from now', () {
- expect(subject.fromNow(
- days: 1,
- hours: 1,
- minutes: 1,
- seconds: 1,
- milliseconds: 1,
- microseconds: 1000), new DateTime(2013, 1, 2, 1, 1, 1, 2));
+ expect(
+ subject.fromNow(
+ days: 1,
+ hours: 1,
+ minutes: 1,
+ seconds: 1,
+ milliseconds: 1,
+ microseconds: 1000),
+ new DateTime(2013, 1, 2, 1, 1, 1, 2));
});
test('should return time micros ago', () {
« no previous file with comments | « packages/quiver/test/testing/equality/equality_test.dart ('k') | packages/quiver/tool/travis.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698