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

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

Issue 11953069: Make standalone (non-browser) locale detection for windows also accept short locale names (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also update the status file 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 | « pkg/intl/lib/intl_standalone.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/find_default_locale_standalone_test.dart
diff --git a/pkg/intl/test/find_default_locale_standalone_test.dart b/pkg/intl/test/find_default_locale_standalone_test.dart
index b27b5783436f10f90d95b28ea68c78ecec6614dd..50167c6c5c81e56ae1e7e095e54d131e2a1078a3 100644
--- a/pkg/intl/test/find_default_locale_standalone_test.dart
+++ b/pkg/intl/test/find_default_locale_standalone_test.dart
@@ -17,6 +17,12 @@ main() {
var callback = expectAsync1(verifyLocale);
findSystemLocale().then(callback);
});
+
+ test("Test windows regex", () {
+ expect(sysInfoRegex.hasMatch("System Locale: en-US;blah blah"), isTrue);
+ expect(sysInfoRegex.hasMatch("System Locale: ru;sdfadsf"), isTrue);
+ expect(sysInfoRegex.hasMatch("System Locale: ru;"), isTrue);
+ });
}
verifyLocale(_) {
« no previous file with comments | « pkg/intl/lib/intl_standalone.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698