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 |