Index: pkg/intl/test/find_default_locale_browser_test.dart |
diff --git a/pkg/intl/test/find_default_locale_browser_test.dart b/pkg/intl/test/find_default_locale_browser_test.dart |
index 51fdaf69b170440185237fa907c51ca9715193f9..e4d78fd0ae7f236ac8d6f292c426752eb16f5cc5 100644 |
--- a/pkg/intl/test/find_default_locale_browser_test.dart |
+++ b/pkg/intl/test/find_default_locale_browser_test.dart |
@@ -21,7 +21,11 @@ main() { |
verifyLocale(_) { |
expect(Intl.systemLocale, isNot(equals("xx_YY"))); |
+ // Allow either en_US or just en type locales. Windows in particular may |
+ // give us just ru for ru_RU |
var pattern = new RegExp(r"\w\w_[A-Z0-9]+"); |
+ var shortPattern = new RegExp(r"\w\w\"); |
var match = pattern.hasMatch(Intl.systemLocale); |
- expect(match, isTrue); |
+ var shortMatch = shortPattern.hasMatch(Intl.systemLocale); |
+ expect(match || shortMatch, isTrue); |
} |