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

Unified Diff: packages/intl/test/find_default_locale_standalone_test.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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 | « packages/intl/test/find_default_locale_browser_test.dart ('k') | packages/intl/test/fixnum_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/intl/test/find_default_locale_standalone_test.dart
diff --git a/packages/intl/test/find_default_locale_standalone_test.dart b/packages/intl/test/find_default_locale_standalone_test.dart
index a89f8ad122b2b3787926ff87206314a61e22f1e4..10d5f271f68ad4a8784279540218d4d82758db52 100644
--- a/packages/intl/test/find_default_locale_standalone_test.dart
+++ b/packages/intl/test/find_default_locale_standalone_test.dart
@@ -2,11 +2,10 @@
// 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 find_default_locale_browser_test;
-
+@TestOn("vm")
import 'package:intl/intl.dart';
import 'package:intl/intl_standalone.dart';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
main() {
test("Find system locale standalone", () {
@@ -15,11 +14,12 @@ main() {
// and then verify that it's actually the correct value.
// We have no way of getting this reliably for Windows, so it will fail.
Intl.systemLocale = "xx_YY";
- var callback = expectAsync(verifyLocale);
+ var callback = expectAsync(verifyLocale) as ThenArgument;
findSystemLocale().then(callback);
});
}
+typedef ThenArgument(String _);
verifyLocale(_) {
expect(Intl.systemLocale, isNot(equals("xx_YY")));
var pattern = new RegExp(r"\w\w_[A-Z0-9]+");
« no previous file with comments | « packages/intl/test/find_default_locale_browser_test.dart ('k') | packages/intl/test/fixnum_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698