| 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]+");
|
|
|