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

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

Issue 14018007: Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and Ra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 7 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_test.dart ('k') | tests/standalone/io/read_into_const_list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_typed_data_test.dart
diff --git a/tests/standalone/io/file_typed_data_test.dart b/tests/standalone/io/file_typed_data_test.dart
index 48b9534094e915e1a194d992cca08126ad1b2439..2c00cef0d53b055085574ae81b17fc3b1ba94c67 100644
--- a/tests/standalone/io/file_typed_data_test.dart
+++ b/tests/standalone/io/file_typed_data_test.dart
@@ -19,9 +19,9 @@ void testWriteInt8ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -46,9 +46,9 @@ void testWriteUint8ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -73,9 +73,9 @@ void testWriteUint8ClampedListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -100,9 +100,9 @@ void testWriteInt16ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -131,9 +131,9 @@ void testWriteUint16ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -162,9 +162,9 @@ void testWriteInt32ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -193,9 +193,9 @@ void testWriteUint32ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
@@ -224,7 +224,7 @@ void testWriteInt64ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
// return raf.writeList(view, 0, 4);
//}).then((raf) {
@@ -255,9 +255,9 @@ void testWriteUint64ListAndView() {
new Directory('').createTemp().then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
- return raf.writeList(list, 0, 8);
+ return raf.writeFrom(list, 0, 8);
}).then((raf) {
- return raf.writeList(view, 0, 4);
+ return raf.writeFrom(view, 0, 4);
}).then((raf) {
return raf.close();
}).then((_) {
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/read_into_const_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698