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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « pkg/intl/test/date_time_format_local_test_stub.dart ('k') | pkg/intl/test/intl_message_test.dart » ('j') | 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 f03e0265a955fde606fd94fe2e65a32fd8afbddf..c275f2910b2458baa7dd1c42e2a7401611e6a64e 100644
--- a/pkg/intl/test/date_time_format_test_core.dart
+++ b/pkg/intl/test/date_time_format_test_core.dart
@@ -158,7 +158,7 @@ testRoundTripParsing(String localeName, Date date) {
DateFormat.ABBR_MONTH_WEEKDAY_DAY];
for(int i = 0; i < formatsToTest.length; i++) {
var skeleton = formatsToTest[i];
- if (!badSkeletons.some((x) => x == skeleton)) {
+ if (!badSkeletons.any((x) => x == skeleton)) {
var format = new DateFormat(skeleton, localeName);
var actualResult = format.format(date);
var parsed = format.parse(actualResult);
@@ -177,7 +177,7 @@ List<String> allLocales() => DateFormat.allLocalesWithSymbols();
*/
List oddLocales() {
int i = 1;
- return allLocales().filter((x) => (i++).isOdd);
+ return allLocales().where((x) => (i++).isOdd).toList();
}
/**
@@ -193,7 +193,7 @@ List smallSetOfLocales() {
*/
List evenLocales() {
int i = 1;
- return allLocales().filter((x) => !((i++).isOdd));
+ return allLocales().where((x) => !((i++).isOdd)).toList();
}
// TODO(alanknight): Run specific tests for the en_ISO locale which isn't
@@ -217,10 +217,14 @@ runDateTests([List<String> subset]) {
test('Basic date format parsing', () {
var date_format = new DateFormat("d");
expect(
- date_format.parsePattern("hh:mm:ss").map((x) => x.pattern),
+ date_format.parsePattern("hh:mm:ss")
+ .mappedBy((x) => x.pattern)
+ .toList(),
orderedEquals(["hh",":", "mm",":","ss"]));
expect(
- date_format.parsePattern("hh:mm:ss").map((x) => x.pattern),
+ date_format.parsePattern("hh:mm:ss")
+ .mappedBy((x) => x.pattern)
+ .toList(),
orderedEquals(["hh",":", "mm",":","ss"]));
});
« no previous file with comments | « pkg/intl/test/date_time_format_local_test_stub.dart ('k') | pkg/intl/test/intl_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698