Index: tests/standalone/io/platform_test.dart |
diff --git a/tests/standalone/io/platform_test.dart b/tests/standalone/io/platform_test.dart |
index 774be4eed29436ff02fd5908638066e04fd46b61..c562076e19ac6335a069e0c18258f05da99c7804 100644 |
--- a/tests/standalone/io/platform_test.dart |
+++ b/tests/standalone/io/platform_test.dart |
@@ -5,13 +5,13 @@ |
#import("dart:io"); |
main() { |
- Expect.isTrue(Platform.numberOfProcessors() > 0); |
- var os = Platform.operatingSystem(); |
+ Expect.isTrue(Platform.numberOfProcessors > 0); |
+ var os = Platform.operatingSystem; |
Expect.isTrue(os == "linux" || os == "macos" || os == "windows"); |
- var sep = Platform.pathSeparator(); |
+ var sep = Platform.pathSeparator; |
Expect.isTrue(sep == '/' || (os == 'windows' && sep == '\\')); |
- var hostname = Platform.localHostname(); |
+ var hostname = Platform.localHostname; |
Expect.isTrue(hostname is String && hostname != ""); |
- var environment = Platform.environment(); |
+ var environment = Platform.environment; |
Expect.isTrue(environment is Map<String, String>); |
} |