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

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

Issue 10928216: revert 1204. Will investigate when I get a chance. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/intl/test/intl_message_basic_example_test.dart ('k') | pkg/intl/test/intl_test.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 // for details. All rights reserved. Use of this source code is governed by a 2 // for 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 #library('intl_message_test'); 5 #library('intl_message_test');
6 6
7 // TODO(rnystrom): Use "package:" URL (#4968).
8 #import('../intl.dart'); 7 #import('../intl.dart');
9 #import('../../unittest/lib/unittest.dart'); 8 #import('../../unittest/unittest.dart');
10 #import('../message_lookup_local.dart'); 9 #import('../message_lookup_local.dart');
11 10
12 /** Tests the MessageFormat library in dart. */ 11 /** Tests the MessageFormat library in dart. */
13 12
14 class Person { 13 class Person {
15 String firstName, lastName; 14 String firstName, lastName;
16 Person(this.firstName, this.lastName); 15 Person(this.firstName, this.lastName);
17 } 16 }
18 17
19 main() { 18 main() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 desc: 'explains the locale'); 81 desc: 'explains the locale');
83 expect(Intl.withLocale('en-US', () => hello()), equals('locale=en-US')); 82 expect(Intl.withLocale('en-US', () => hello()), equals('locale=en-US'));
84 }); 83 });
85 84
86 test('Test passing locale', () { 85 test('Test passing locale', () {
87 hello(a_locale) => Intl.message('locale=${Intl.getCurrentLocale()}', 86 hello(a_locale) => Intl.message('locale=${Intl.getCurrentLocale()}',
88 desc: 'explains the locale', locale: a_locale); 87 desc: 'explains the locale', locale: a_locale);
89 expect(hello('en-US'), equals('locale=en_US')); 88 expect(hello('en-US'), equals('locale=en_US'));
90 }); 89 });
91 } 90 }
OLDNEW
« no previous file with comments | « pkg/intl/test/intl_message_basic_example_test.dart ('k') | pkg/intl/test/intl_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698