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

Unified Diff: tests/standalone/io/file_error_test.dart

Issue 10351011: Change Platform members to getters instead of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding new 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/io/directory_test.dart ('k') | tests/standalone/io/file_system_links_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_error_test.dart
diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart
index 40f2b62c9b3b2cfb7c4a05c7efecd16e7b0683f7..6aef13af9f7691a865fb769ae31775e01c5c42b5 100644
--- a/tests/standalone/io/file_error_test.dart
+++ b/tests/standalone/io/file_error_test.dart
@@ -18,11 +18,11 @@ bool checkNonExistentFileException(e, str) {
Expect.isTrue(e is FileIOException);
Expect.isTrue(e.osError != null);
Expect.isTrue(e.toString().indexOf(str) != -1);
- if (Platform.operatingSystem() == "linux") {
+ if (Platform.operatingSystem == "linux") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "macos") {
+ } else if (Platform.operatingSystem == "macos") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "windows") {
+ } else if (Platform.operatingSystem == "windows") {
Expect.isTrue(
e.toString().indexOf(
"The system cannot find the file specified") != -1);
@@ -116,13 +116,13 @@ bool checkCreateInNonExistentDirectoryException(e) {
Expect.isTrue(e is FileIOException);
Expect.isTrue(e.osError != null);
Expect.isTrue(e.toString().indexOf("Cannot create file") != -1);
- if (Platform.operatingSystem() == "linux") {
+ if (Platform.operatingSystem == "linux") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
Expect.equals(2, e.osError.errorCode);
- } else if (Platform.operatingSystem() == "macos") {
+ } else if (Platform.operatingSystem == "macos") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
Expect.equals(2, e.osError.errorCode);
- } else if (Platform.operatingSystem() == "windows") {
+ } else if (Platform.operatingSystem == "windows") {
Expect.isTrue(
e.toString().indexOf(
"The system cannot find the path specified") != -1);
@@ -156,11 +156,11 @@ bool checkFullPathOnNonExistentDirectoryException(e) {
Expect.isTrue(e is FileIOException);
Expect.isTrue(e.osError != null);
Expect.isTrue(e.toString().indexOf("Cannot retrieve full path") != -1);
- if (Platform.operatingSystem() == "linux") {
+ if (Platform.operatingSystem == "linux") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "macos") {
+ } else if (Platform.operatingSystem == "macos") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "windows") {
+ } else if (Platform.operatingSystem == "windows") {
Expect.isTrue(
e.toString().indexOf(
"The system cannot find the file specified") != -1);
@@ -196,11 +196,11 @@ bool checkDirectoryInNonExistentDirectoryException(e) {
Expect.isTrue(e.osError != null);
Expect.isTrue(
e.toString().indexOf("Cannot retrieve directory for file") != -1);
- if (Platform.operatingSystem() == "linux") {
+ if (Platform.operatingSystem == "linux") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "macos") {
+ } else if (Platform.operatingSystem == "macos") {
Expect.isTrue(e.toString().indexOf("No such file or directory") != -1);
- } else if (Platform.operatingSystem() == "windows") {
+ } else if (Platform.operatingSystem == "windows") {
Expect.isTrue(
e.toString().indexOf(
"The system cannot find the file specified") != -1);
« no previous file with comments | « tests/standalone/io/directory_test.dart ('k') | tests/standalone/io/file_system_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698