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

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

Issue 10915215: Add async initialization for Intl.message and an example (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 side-by-side diff with in-line comments
Download patch
Index: pkg/intl/test/intl_message_test.dart
===================================================================
--- pkg/intl/test/intl_message_test.dart (revision 12281)
+++ pkg/intl/test/intl_message_test.dart (working copy)
@@ -2,11 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
#library('intl_message_test');
#import('../intl.dart');
-#import('../../../pkg/unittest/unittest.dart');
+#import('../../unittest/unittest.dart');
+#import('../message_lookup_local.dart');
/** Tests the MessageFormat library in dart. */
@@ -16,6 +16,10 @@
}
main() {
+ initializeMessages('en_US').then(runTests);
+}
+
+runTests(_) {
test('Trivial Message', () {
hello() => Intl.message('Hello, world!',
desc: 'hello world string');

Powered by Google App Engine
This is Rietveld 408576698