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

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

Issue 8492007: Implementation of Platform class that exposes information about the machine and the OS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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/PlatformTest.dart
diff --git a/tests/standalone/src/PlatformTest.dart b/tests/standalone/src/PlatformTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8796c65b2791122987422ccba788f76a13b9bc4b
--- /dev/null
+++ b/tests/standalone/src/PlatformTest.dart
@@ -0,0 +1,12 @@
+// Copyright (c) 2011, 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.
+
+main() {
+ var p = new Platform();
+ Expect.isTrue(p.numberOfProcessors() > 0);
+ var os = p.operatingSystem();
+ Expect.isTrue(os == "linux" || os == "macos" || os == "windows");
+ var sep = p.pathSeparator();
+ Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\'));
+}
« 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