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

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

Issue 10050011: Add member localHostname() to the Dart IO Platform class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Using static bool to control initialization. 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
« no previous file with comments | « 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 b6ea96ea0a2632a9415a811a0214f491f03b459d..276a11ca5a3ee4b68c09803ff49ceaebb95f5ae0 100644
--- a/tests/standalone/src/io/PlatformTest.dart
+++ b/tests/standalone/src/io/PlatformTest.dart
@@ -11,4 +11,6 @@ main() {
Expect.isTrue(os == "linux" || os == "macos" || os == "windows");
var sep = p.pathSeparator();
Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\'));
+ var hostname = p.localHostname();
+ Expect.isTrue(hostname is String && hostname != "");
}
« no previous file with comments | « runtime/bin/platform_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698