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

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

Issue 12038073: Remove the code that attempts to find a locale from the command line VM in Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Switch back to having test in 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 50167c6c5c81e56ae1e7e095e54d131e2a1078a3..80bb4547c1fbf0db514ef05132f9d7e20175b502 100644
--- a/pkg/intl/test/find_default_locale_standalone_test.dart
+++ b/pkg/intl/test/find_default_locale_standalone_test.dart
@@ -7,22 +7,18 @@ library find_default_locale_browser_test;
import 'package:intl/intl.dart';
import 'package:intl/intl_standalone.dart';
import 'package:unittest/unittest.dart';
+import 'dart:io';
main() {
test("Find system locale standalone", () {
// TODO (alanknight): This only verifies that we found some locale. We
// should find a way to force the system locale before the test is run
// 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 = 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