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

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

Issue 12441003: Rename String.concat to operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 9 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_invalid_arguments_test.dart ('k') | tests/standalone/io/pipe_server_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_test.dart
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart
index 6bfb4cfacb078bf15f7694a79f415cd3268ea35c..122a4cdcd0505320ae4fd1308dbcce1167a5002f 100644
--- a/tests/standalone/io/file_test.dart
+++ b/tests/standalone/io/file_test.dart
@@ -88,7 +88,7 @@ class FileTest {
Expect.equals(42, buffer.length);
// Write the contents of the file just read into another file.
String outFilename =
- tempDirectory.path.concat("/out_read_write_stream");
+ tempDirectory.path + "/out_read_write_stream";
var file2 = new File(outFilename);
var output = file2.openWrite();
output.writeBytes(buffer);
@@ -126,7 +126,7 @@ class FileTest {
buffer[i] = i % 256;
}
String filename =
- tempDirectory.path.concat("/out_read_write_stream_large_file");
+ tempDirectory.path + "/out_read_write_stream_large_file";
File file = new File(filename);
IOSink output = file.openWrite();
output.writeBytes(buffer);
@@ -268,7 +268,7 @@ class FileTest {
Expect.equals(42, bytes_read);
openedFile.close().then((ignore) {
// Write the contents of the file just read into another file.
- String outFilename = tempDirectory.path.concat("/out_read_write");
+ String outFilename = tempDirectory.path + "/out_read_write";
final File file2 = new File(outFilename);
file2.create().then((ignore) {
file2.fullPath().then((s) {
@@ -315,7 +315,7 @@ class FileTest {
static void testWriteAppend() {
String content = "foobar";
- String filename = tempDirectory.path.concat("/write_append");
+ String filename = tempDirectory.path + "/write_append";
File file = new File(filename);
file.createSync();
Expect.isTrue(new File(filename).existsSync());
@@ -339,7 +339,7 @@ class FileTest {
static void testOutputStreamWriteAppend() {
String content = "foobar";
- String filename = tempDirectory.path.concat("/outstream_write_append");
+ String filename = tempDirectory.path + "/outstream_write_append";
File file = new File(filename);
file.createSync();
List<int> buffer = content.codeUnits;
@@ -371,7 +371,7 @@ class FileTest {
// Test for file read and write functionality.
static void testOutputStreamWriteString() {
String content = "foobar";
- String filename = tempDirectory.path.concat("/outstream_write_string");
+ String filename = tempDirectory.path + "/outstream_write_string";
File file = new File(filename);
file.createSync();
List<int> buffer = content.codeUnits;
@@ -408,7 +408,7 @@ class FileTest {
Expect.equals(42, bytes_read);
file.closeSync();
// Write the contents of the file just read into another file.
- String outFilename = tempDirectory.path.concat("/out_read_write_sync");
+ String outFilename = tempDirectory.path + "/out_read_write_sync";
File outFile = new File(outFilename);
outFile.createSync();
String path = outFile.fullPathSync();
@@ -436,7 +436,7 @@ class FileTest {
}
static void testReadEmptyFileSync() {
- String fileName = tempDirectory.path.concat("/empty_file_sync");
+ String fileName = tempDirectory.path + "/empty_file_sync";
File file = new File(fileName);
file.createSync();
RandomAccessFile openedFile = file.openSync();
@@ -446,7 +446,7 @@ class FileTest {
}
static void testReadEmptyFile() {
- String fileName = tempDirectory.path.concat("/empty_file");
+ String fileName = tempDirectory.path + "/empty_file";
File file = new File(fileName);
asyncTestStarted();
file.create().then((ignore) {
@@ -627,7 +627,7 @@ class FileTest {
}
static void testTruncate() {
- File file = new File(tempDirectory.path.concat("/out_truncate"));
+ File file = new File(tempDirectory.path + "/out_truncate");
List buffer = const [65, 65, 65, 65, 65, 65, 65, 65, 65, 65];
file.open(FileMode.WRITE).then((RandomAccessFile openedFile) {
openedFile.writeList(buffer, 0, 10).then((ignore) {
@@ -653,7 +653,7 @@ class FileTest {
}
static void testTruncateSync() {
- File file = new File(tempDirectory.path.concat("/out_truncate_sync"));
+ File file = new File(tempDirectory.path + "/out_truncate_sync");
List buffer = const [65, 65, 65, 65, 65, 65, 65, 65, 65, 65];
RandomAccessFile openedFile = file.openSync(FileMode.WRITE);
openedFile.writeListSync(buffer, 0, 10);
@@ -669,7 +669,7 @@ class FileTest {
static void testCloseException() {
bool exceptionCaught = false;
bool wrongExceptionCaught = false;
- File input = new File(tempDirectory.path.concat("/out_close_exception"));
+ File input = new File(tempDirectory.path + "/out_close_exception");
RandomAccessFile openedFile = input.openSync(FileMode.WRITE);
openedFile.closeSync();
try {
@@ -761,7 +761,7 @@ class FileTest {
asyncTestStarted();
List<int> buffer = new List<int>(42);
File file =
- new File(tempDirectory.path.concat("/out_close_exception_stream"));
+ new File(tempDirectory.path + "/out_close_exception_stream");
file.createSync();
var output = file.openWrite();
output.close();
@@ -777,7 +777,7 @@ class FileTest {
bool exceptionCaught = false;
bool wrongExceptionCaught = false;
File file =
- new File(tempDirectory.path.concat("/out_buffer_out_of_bounds"));
+ new File(tempDirectory.path + "/out_buffer_out_of_bounds");
RandomAccessFile openedFile = file.openSync(FileMode.WRITE);
try {
List<int> buffer = new List<int>(10);
« no previous file with comments | « tests/standalone/io/file_invalid_arguments_test.dart ('k') | tests/standalone/io/pipe_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698