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

Unified Diff: tests/lib/i18n/intl_message_test.dart

Issue 10536105: Make Intl.message static (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
« lib/i18n/intl.dart ('K') | « lib/i18n/intl_message.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/i18n/intl_message_test.dart
===================================================================
--- tests/lib/i18n/intl_message_test.dart (revision 8515)
+++ tests/lib/i18n/intl_message_test.dart (working copy)
@@ -19,22 +19,20 @@
}
main() {
- Intl intl = new Intl();
-
test('Trivial Message', () {
- hello() => intl.message('Hello, world!',
+ hello() => Intl.message('Hello, world!',
desc: 'hello world string');
expect(hello(), equals('Hello, world!'));
});
test('Message with one parameter', () {
- lucky(number) => intl.message('Your lucky number is $number',
+ lucky(number) => Intl.message('Your lucky number is $number',
desc: 'number str', examples: {'number': 2});
expect(lucky(3), equals('Your lucky number is 3'));
});
test('Message with multiple plural cases (whole message)', () {
- emails(number) => intl.message(
+ emails(number) => Intl.message(
Intl.plural(number,
{'0': 'There are no emails left.',
'1': 'There is one email left.',
@@ -47,7 +45,7 @@
});
test('Message with multiple plural cases (partial message)', () {
- emails(number) => intl.message(
+ emails(number) => Intl.message(
"There ${Intl.plural(number,
{'0': 'are',
'1': 'is',
@@ -60,7 +58,7 @@
});
test('Message with dictionary parameter', () {
- hello(dict) => intl.message(
+ hello(dict) => Intl.message(
"Hello, my name is ${dict['first']} ${dict['last']}",
desc: "States a person's name.",
examples: {'first': 'Ford', 'last': 'Prefect'});
@@ -69,7 +67,7 @@
});
test('Message with object parameter', () {
- hello(person) => intl.message(
+ hello(person) => Intl.message(
"Hello, my name is ${person.firstName} ${person.lastName}.",
desc: "States a person's name.",
examples: {'first': 'Ford', 'last' : 'Prefect'});
« lib/i18n/intl.dart ('K') | « lib/i18n/intl_message.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698