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

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

Issue 138033002: Make VM TypedList not implement ByteBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove cast. Created 6 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/lib/typed_data/typed_list_buffer_test.dart ('k') | tests/standalone/typed_data_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 882ed542eb949825de107f3df28e229d30f5ac89..7c0cfa0f24c8bd61f804b69d9f0ff4d167441dd4 100644
--- a/tests/standalone/io/file_typed_data_test.dart
+++ b/tests/standalone/io/file_typed_data_test.dart
@@ -143,7 +143,8 @@ void testWriteInt16ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Int16List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Int16List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -187,7 +188,8 @@ void testWriteUint16ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Uint16List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Uint16List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -231,7 +233,8 @@ void testWriteInt32ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Int32List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Int32List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -275,7 +278,8 @@ void testWriteUint32ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Uint32List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Uint32List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -319,7 +323,8 @@ void testWriteInt64ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Int64List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Int64List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -363,7 +368,8 @@ void testWriteUint64ListAndView() {
for (int i = 0; i < content.length; i++) {
typed_data_content[i] = content[i];
}
- Expect.listEquals(expected, new Uint64List.view(typed_data_content));
+ Expect.listEquals(expected,
+ new Uint64List.view(typed_data_content.buffer));
temp.deleteSync(recursive: true);
asyncEnd();
});
« no previous file with comments | « tests/lib/typed_data/typed_list_buffer_test.dart ('k') | tests/standalone/typed_data_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698