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

Side by Side Diff: pkg/intl/test/date_time_format_http_request_test.dart

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/http/lib/src/utils.dart ('k') | pkg/intl/test/date_time_format_local_test_stub.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // or details. All rights reserved. Use of this source code is governed by a 2 // or details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Test date formatting and parsing using locale data read via an http request 6 * Test date formatting and parsing using locale data read via an http request
7 * to a server. 7 * to a server.
8 */ 8 */
9 9
10 library date_time_format_http_request_test; 10 library date_time_format_http_request_test;
(...skipping 12 matching lines...) Expand all
23 useHtmlConfiguration(); 23 useHtmlConfiguration();
24 url = "http://localhost:${window.location.port}/pkg/intl/lib/src/data/dates/"; 24 url = "http://localhost:${window.location.port}/pkg/intl/lib/src/data/dates/";
25 // Initialize one locale just so we know what the list is. 25 // Initialize one locale just so we know what the list is.
26 test('Run everything', () { 26 test('Run everything', () {
27 initializeDateFormatting("en_US", url).then(expectAsync1(runEverything));}); 27 initializeDateFormatting("en_US", url).then(expectAsync1(runEverything));});
28 } 28 }
29 29
30 void runEverything(_) { 30 void runEverything(_) {
31 // Initialize all locales and wait for them to finish before running tests. 31 // Initialize all locales and wait for them to finish before running tests.
32 var futures = DateFormat.allLocalesWithSymbols() 32 var futures = DateFormat.allLocalesWithSymbols()
33 .mappedBy((locale) => initializeDateFormatting(locale, url)) 33 .map((locale) => initializeDateFormatting(locale, url))
34 .toList(); 34 .toList();
35 Future.wait(futures).then(expectAsync1((_) { 35 Future.wait(futures).then(expectAsync1((_) {
36 runDateTests(smallSetOfLocales()); 36 runDateTests(smallSetOfLocales());
37 })); 37 }));
38 } 38 }
OLDNEW
« no previous file with comments | « pkg/http/lib/src/utils.dart ('k') | pkg/intl/test/date_time_format_local_test_stub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698