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

Unified Diff: tests/standalone/io/locale_name_test.dart

Issue 2785073002: [dart:io] Adds Platform.localeName (Closed)
Patch Set: Update CHANGELOG Created 3 years, 9 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
Index: tests/standalone/io/locale_name_test.dart
diff --git a/tests/standalone/io/locale_name_test.dart b/tests/standalone/io/locale_name_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f488146377dab27c419d6f9e50eaac343e8d1c2e
--- /dev/null
+++ b/tests/standalone/io/locale_name_test.dart
@@ -0,0 +1,14 @@
+import 'dart:io';
+
+import "package:expect/expect.dart";
+
+main() {
+ try {
+ Platform.localeName;
+ } catch (e, s) {
+ Expect.fail("Platform.localeName threw: $e\n$s\n");
+ }
+ Expect.isNotNull(Platform.localeName);
+ Expect.isTrue(Platform.localeName is String);
+ print(Platform.localeName);
+}
siva 2017/03/30 17:35:35 Need status file update for dart2js, analyzer etc.
zra 2017/03/30 17:48:38 I believe standalone/io tests are already handled
« sdk/lib/_internal/js_runtime/lib/io_patch.dart ('K') | « sdk/lib/io/platform_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698