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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/chunked_stream_test.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/dart_std_io_pipe_test.dart
diff --git a/tests/standalone/io/dart_std_io_pipe_test.dart b/tests/standalone/io/dart_std_io_pipe_test.dart
index e39e65ea709706ef51562f364b2618e578464967..967c48ab14ac54bd089c81c4a81b96480ba9f67a 100644
--- a/tests/standalone/io/dart_std_io_pipe_test.dart
+++ b/tests/standalone/io/dart_std_io_pipe_test.dart
@@ -23,7 +23,7 @@ void checkFileEmpty(String fileName) {
void checkFileContent(String fileName, String content) {
RandomAccessFile pipeOut = new File(fileName).openSync();
int length = pipeOut.lengthSync();
- List data = new List<int>(length);
+ List data = new List<int>.fixedLength(length);
pipeOut.readListSync(data, 0, length);
Expect.equals(content, new String.fromCharCodes(data));
pipeOut.closeSync();
@@ -71,9 +71,9 @@ void test(String shellScript, String dartScript, String type) {
process.stdout.onData = process.stdout.read;
process.stderr.onData = process.stderr.read;
});
- future.handleException((ProcessException error) {
+ future.catchError((error) {
dir.deleteSync(recursive: true);
- Expect.fail(error.toString());
+ Expect.fail(error.error.toString());
});
}
« no previous file with comments | « tests/standalone/io/chunked_stream_test.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698