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

Unified Diff: test/dart_codegen/expect/core/duration.dart

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/dart_codegen/expect/core/date_time.dart ('k') | test/dart_codegen/expect/core/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/duration.dart
diff --git a/test/dart_codegen/expect/core/duration.dart b/test/dart_codegen/expect/core/duration.dart
index 2327857855f006246d465ae1905b03f1e24f5f8c..d1fe9d017d68d5b0b60acb824dbe6e38fc0a155b 100644
--- a/test/dart_codegen/expect/core/duration.dart
+++ b/test/dart_codegen/expect/core/duration.dart
@@ -63,14 +63,13 @@ part of dart.core;
return "0$n";
}
if (inMicroseconds < 0) {
- return "-${-this}
- ";
+ return "-${-this}";
+ }
+ String twoDigitMinutes = twoDigits(((__x0) => DDC$RT.cast(__x0, num, int, "CastGeneral", """line 258, column 40 of dart:core/duration.dart: """, __x0 is int, true))(inMinutes.remainder(MINUTES_PER_HOUR)));
+ String twoDigitSeconds = twoDigits(((__x1) => DDC$RT.cast(__x1, num, int, "CastGeneral", """line 259, column 40 of dart:core/duration.dart: """, __x1 is int, true))(inSeconds.remainder(SECONDS_PER_MINUTE)));
+ String sixDigitUs = sixDigits(((__x2) => DDC$RT.cast(__x2, num, int, "CastGeneral", """line 261, column 19 of dart:core/duration.dart: """, __x2 is int, true))(inMicroseconds.remainder(MICROSECONDS_PER_SECOND)));
+ return "$inHours:$twoDigitMinutes:$twoDigitSeconds.$sixDigitUs";
}
- String twoDigitMinutes = twoDigits(((__x0) => DDC$RT.cast(__x0, num, int, "CastGeneral", """line 258, column 40 of dart:core/duration.dart: """, __x0 is int, true))(inMinutes.remainder(MINUTES_PER_HOUR)));
- String twoDigitSeconds = twoDigits(((__x1) => DDC$RT.cast(__x1, num, int, "CastGeneral", """line 259, column 40 of dart:core/duration.dart: """, __x1 is int, true))(inSeconds.remainder(SECONDS_PER_MINUTE)));
- String sixDigitUs = sixDigits(((__x2) => DDC$RT.cast(__x2, num, int, "CastGeneral", """line 261, column 19 of dart:core/duration.dart: """, __x2 is int, true))(inMicroseconds.remainder(MICROSECONDS_PER_SECOND)));
- return "$inHours:$twoDigitMinutes:$twoDigitSeconds.$sixDigitUs";
-}
bool get isNegative => _duration < 0;
Duration abs() => new Duration._microseconds(_duration.abs());
Duration operator -() => new Duration._microseconds(-_duration);
« no previous file with comments | « test/dart_codegen/expect/core/date_time.dart ('k') | test/dart_codegen/expect/core/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698