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

Unified Diff: pkg/intl/test/find_default_locale_browser_test.dart

Issue 11895005: Fix tests to accept short locale names as long as long ones, properly this time. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bad syntax in previous fix Created 7 years, 11 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 | « no previous file | pkg/intl/test/find_default_locale_standalone_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e4d78fd0ae7f236ac8d6f292c426752eb16f5cc5..1cc177eb53de63f54b399d92a4c65aaf20c8073f 100644
--- a/pkg/intl/test/find_default_locale_browser_test.dart
+++ b/pkg/intl/test/find_default_locale_browser_test.dart
@@ -24,7 +24,7 @@ verifyLocale(_) {
// 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 shortPattern = new RegExp(r"\w\w");
var match = pattern.hasMatch(Intl.systemLocale);
var shortMatch = shortPattern.hasMatch(Intl.systemLocale);
expect(match || shortMatch, isTrue);
« no previous file with comments | « no previous file | pkg/intl/test/find_default_locale_standalone_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698