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

Unified Diff: pkg/intl/test/date_time_format_test_core.dart

Issue 110573002: Add a test for the basic operations on a test that's flaking in a very odd way (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/date_time_format_test_core.dart
diff --git a/pkg/intl/test/date_time_format_test_core.dart b/pkg/intl/test/date_time_format_test_core.dart
index 5d3909010c079e1c5fbd7180ec4e120ada6d99b1..65461e2e069bb8a125d61804ee60508591fe6e51 100644
--- a/pkg/intl/test/date_time_format_test_core.dart
+++ b/pkg/intl/test/date_time_format_test_core.dart
@@ -423,4 +423,18 @@ void runDateTests(Function subsetFunc) {
var aDate = new DateTime(2012, 4, 27, 13, 58, 59, 012);
expect(f.format(aDate), "118");
});
+
+ // There are some very odd off-by-one bugs when parsing dates. Put in
+ // some very basic tests to try and get more information.
+ test('Simple Date Creation', () {
+ var format = new DateFormat(DateFormat.NUM_MONTH);
+ var first = format.parse("7");
+ var second = format.parse("7");
+ var basic = new DateTime(1970, 7);
+ var basicAgain = new DateTime(1970, 7);
+ expect(first, second);
+ expect(first, basic);
+ expect(basic, basicAgain);
+ expect(first.month, 7);
kustermann 2013/12/10 07:12:22 I would do it in a loop, to increase the probabili
+ });
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698