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

Unified Diff: tests/standalone/io/file_system_links_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/file_error_test.dart ('k') | tests/standalone/io/platform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_system_links_test.dart
diff --git a/tests/standalone/io/file_system_links_test.dart b/tests/standalone/io/file_system_links_test.dart
index 348a9b1ff9de0a833424497ca4b2388aa9502a45..0bf8594233d50a7993b43d1a5c52c767faa51caa 100644
--- a/tests/standalone/io/file_system_links_test.dart
+++ b/tests/standalone/io/file_system_links_test.dart
@@ -24,8 +24,8 @@ createLink(String dst, String link, bool symbolic, void callback()) {
testFileExistsCreate() {
var temp = new Directory('');
temp.createTempSync();
- var x = '${temp.path}${Platform.pathSeparator()}x';
- var y = '${temp.path}${Platform.pathSeparator()}y';
+ var x = '${temp.path}${Platform.pathSeparator}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
createLink(x, y, true, () {
Expect.isFalse(new File(x).existsSync());
Expect.isFalse(new File(y).existsSync());
@@ -40,8 +40,8 @@ testFileExistsCreate() {
testFileDelete() {
var temp = new Directory('');
temp.createTempSync();
- var x = '${temp.path}${Platform.pathSeparator()}x';
- var y = '${temp.path}${Platform.pathSeparator()}y';
+ var x = '${temp.path}${Platform.pathSeparator}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
new File(x).createSync();
createLink(x, y, true, () {
Expect.isTrue(new File(x).existsSync());
@@ -64,8 +64,8 @@ testFileDelete() {
testFileWriteRead() {
var temp = new Directory('');
temp.createTempSync();
- var x = '${temp.path}${Platform.pathSeparator()}x';
- var y = '${temp.path}${Platform.pathSeparator()}y';
+ var x = '${temp.path}${Platform.pathSeparator}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
new File(x).createSync();
createLink(x, y, true, () {
var data = "asdf".charCodes();
@@ -86,8 +86,8 @@ testFileWriteRead() {
testDirectoryExistsCreate() {
var temp = new Directory('');
temp.createTempSync();
- var x = '${temp.path}${Platform.pathSeparator()}x';
- var y = '${temp.path}${Platform.pathSeparator()}y';
+ var x = '${temp.path}${Platform.pathSeparator}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
createLink(x, y, true, () {
Expect.isFalse(new Directory(x).existsSync());
Expect.isFalse(new Directory(y).existsSync());
@@ -102,8 +102,8 @@ testDirectoryDelete() {
temp.createTempSync();
var temp2 = new Directory('');
temp2.createTempSync();
- var y = '${temp.path}${Platform.pathSeparator()}y';
- var x = '${temp2.path}${Platform.pathSeparator()}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
+ var x = '${temp2.path}${Platform.pathSeparator}x';
new File(x).createSync();
createLink(temp2.path, y, true, () {
var link = new Directory(y);
@@ -129,8 +129,8 @@ testDirectoryListing() {
temp.createTempSync();
var temp2 = new Directory('');
temp2.createTempSync();
- var y = '${temp.path}${Platform.pathSeparator()}y';
- var x = '${temp2.path}${Platform.pathSeparator()}x';
+ var y = '${temp.path}${Platform.pathSeparator}y';
+ var x = '${temp2.path}${Platform.pathSeparator}x';
new File(x).createSync();
createLink(temp2.path, y, true, () {
var files = [];
« no previous file with comments | « tests/standalone/io/file_error_test.dart ('k') | tests/standalone/io/platform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698