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

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

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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/process_working_directory_test.dart ('k') | tests/standalone/io/regress_6521_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/read_into_const_list_test.dart
diff --git a/tests/standalone/io/read_into_const_list_test.dart b/tests/standalone/io/read_into_const_list_test.dart
index 0362f3c31ff398dc0f8a8dac2001477ad8f150d2..576cc3f288bbb243d33a0ae0f437acd3b159a4e2 100644
--- a/tests/standalone/io/read_into_const_list_test.dart
+++ b/tests/standalone/io/read_into_const_list_test.dart
@@ -17,13 +17,14 @@ void main() {
String filename = getFilename("bin/file_test.cc");
File file = new File(filename);
- InputStream input = file.openInputStream();
- try {
- input.readInto(a, 0, 1);
- Expect.fail("no exception thrown");
- } catch (e) {
- Expect.isTrue(e is UnsupportedError);
- }
- Expect.equals(0, a[0]);
- Expect.equals(0, b[0]);
+ file.open().then((input) {
+ try {
+ input.readListSync(a, 0, 1);
+ Expect.fail("no exception thrown");
+ } catch (e) {
+ Expect.isTrue(e is UnsupportedError);
+ }
+ Expect.equals(0, a[0]);
+ Expect.equals(0, b[0]);
+ });
}
« no previous file with comments | « tests/standalone/io/process_working_directory_test.dart ('k') | tests/standalone/io/regress_6521_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698