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

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

Issue 814113004: Pull args, intl, logging, shelf, and source_maps out of the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also csslib. Created 6 years 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/test/find_default_locale_browser_test.dart ('k') | pkg/intl/test/fixnum_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_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
deleted file mode 100644
index a89f8ad122b2b3787926ff87206314a61e22f1e4..0000000000000000000000000000000000000000
--- a/pkg/intl/test/find_default_locale_standalone_test.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// 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;
-
-import 'package:intl/intl.dart';
-import 'package:intl/intl_standalone.dart';
-import 'package:unittest/unittest.dart';
-
-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 = expectAsync(verifyLocale);
- findSystemLocale().then(callback);
- });
-}
-
-verifyLocale(_) {
- expect(Intl.systemLocale, isNot(equals("xx_YY")));
- var pattern = new RegExp(r"\w\w_[A-Z0-9]+");
- 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 | « pkg/intl/test/find_default_locale_browser_test.dart ('k') | pkg/intl/test/fixnum_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698