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

Unified Diff: tests/standalone/io/file_invalid_arguments_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/debugger/debug_lib.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_invalid_arguments_test.dart
diff --git a/tests/standalone/io/file_invalid_arguments_test.dart b/tests/standalone/io/file_invalid_arguments_test.dart
index 26c95578da8657bf277f8e1a570a7f60382f5e2e..b4c1720bd659bab0958cfaaaa9629c67d6d636b7 100644
--- a/tests/standalone/io/file_invalid_arguments_test.dart
+++ b/tests/standalone/io/file_invalid_arguments_test.dart
@@ -62,7 +62,7 @@ void testReadListInvalidArgs(buffer, offset, length) {
void testWriteByteInvalidArgs(value) {
var port = new ReceivePort();
String filename = getFilename("tests/vm/data/fixed_length_file");
- var file = (new File(filename.concat("_out"))).openSync(FileMode.WRITE);
+ var file = (new File("${filename}_out")).openSync(FileMode.WRITE);
try {
file.writeByteSync(value);
Expect.fail('exception expected');
@@ -86,7 +86,7 @@ void testWriteByteInvalidArgs(value) {
void testWriteListInvalidArgs(buffer, offset, bytes) {
var port = new ReceivePort();
String filename = getFilename("tests/vm/data/fixed_length_file");
- var file = (new File(filename.concat("_out"))).openSync(FileMode.WRITE);
+ var file = (new File("${filename}_out")).openSync(FileMode.WRITE);
try {
file.writeListSync(buffer, offset, bytes);
Expect.fail('exception expected');
@@ -110,7 +110,7 @@ void testWriteListInvalidArgs(buffer, offset, bytes) {
void testWriteStringInvalidArgs(string) {
var port = new ReceivePort();
String filename = getFilename("tests/vm/data/fixed_length_file");
- var file = new File(filename.concat("_out"));
+ var file = new File("${filename}_out");
file.openSync(FileMode.WRITE);
try {
file.writeString(string);
« no previous file with comments | « tests/standalone/debugger/debug_lib.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698