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

Unified Diff: tests/standalone/src/io/PlatformTest.dart

Issue 10112002: Add read-only environment variable access. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add windows error handling. Created 8 years, 8 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
« runtime/bin/platform_linux.cc ('K') | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/PlatformTest.dart
diff --git a/tests/standalone/src/io/PlatformTest.dart b/tests/standalone/src/io/PlatformTest.dart
index 276a11ca5a3ee4b68c09803ff49ceaebb95f5ae0..334a5c8afadba2ee98b1a06b25ca8af348827a5e 100644
--- a/tests/standalone/src/io/PlatformTest.dart
+++ b/tests/standalone/src/io/PlatformTest.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// 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.
@@ -13,4 +13,6 @@ main() {
Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\'));
var hostname = p.localHostname();
Expect.isTrue(hostname is String && hostname != "");
+ var environment = p.environment();
+ Expect.isTrue(environment is Map<String, String>);
}
« runtime/bin/platform_linux.cc ('K') | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698