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

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

Issue 10021048: Remove need to instantiate Platform and make methods static. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add stable test binaries. 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 | « tests/standalone/src/io/FileErrorTest.dart ('k') | tests/standalone/src/io/ProcessTestUtil.dart » ('j') | 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 334a5c8afadba2ee98b1a06b25ca8af348827a5e..774be4eed29436ff02fd5908638066e04fd46b61 100644
--- a/tests/standalone/src/io/PlatformTest.dart
+++ b/tests/standalone/src/io/PlatformTest.dart
@@ -5,14 +5,13 @@
#import("dart:io");
main() {
- var p = new Platform();
- Expect.isTrue(p.numberOfProcessors() > 0);
- var os = p.operatingSystem();
+ Expect.isTrue(Platform.numberOfProcessors() > 0);
+ var os = Platform.operatingSystem();
Expect.isTrue(os == "linux" || os == "macos" || os == "windows");
- var sep = p.pathSeparator();
+ var sep = Platform.pathSeparator();
Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\'));
- var hostname = p.localHostname();
+ var hostname = Platform.localHostname();
Expect.isTrue(hostname is String && hostname != "");
- var environment = p.environment();
+ var environment = Platform.environment();
Expect.isTrue(environment is Map<String, String>);
}
« no previous file with comments | « tests/standalone/src/io/FileErrorTest.dart ('k') | tests/standalone/src/io/ProcessTestUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698