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

Unified Diff: packages/intl/test/find_default_locale_browser_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
Index: packages/intl/test/find_default_locale_browser_test.dart
diff --git a/packages/intl/test/find_default_locale_browser_test.dart b/packages/intl/test/find_default_locale_browser_test.dart
index f00b4c8e632055e118868435413d9672c6cae86e..8aac05aeeeaffb109429010ee7ae0452c820219c 100644
--- a/packages/intl/test/find_default_locale_browser_test.dart
+++ b/packages/intl/test/find_default_locale_browser_test.dart
@@ -2,11 +2,12 @@
// 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.
+@TestOn("browser")
library find_default_locale_browser_test;
import 'package:intl/intl.dart';
import 'package:intl/intl_browser.dart';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
main() {
test("Find system locale in browser", () {
@@ -14,11 +15,13 @@ main() {
// should find a way to force the system locale before the test is run
// and then verify that it's actually the correct value.
Intl.systemLocale = 'xx_YY';
- var callback = expectAsync(verifyLocale);
+ ThenArgument callback = expectAsync(verifyLocale) as ThenArgument;
findSystemLocale().then(callback);
});
}
+typedef ThenArgument(String _);
+
verifyLocale(_) {
expect(Intl.systemLocale, isNot(equals("xx_YY")));
// Allow either en_US or just en type locales. Windows in particular may
« no previous file with comments | « packages/intl/test/date_time_strict_test.dart ('k') | packages/intl/test/find_default_locale_standalone_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698