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

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

Issue 137783019: Revert "Make VM TypedList not implement ByteBuffer." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 7c0cfa0f24c8bd61f804b69d9f0ff4d167441dd4..882ed542eb949825de107f3df28e229d30f5ac89 100644
--- a/tests/standalone/io/file_typed_data_test.dart
+++ b/tests/standalone/io/file_typed_data_test.dart
@@ -143,8 +143,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Int16List.view(typed_data_content));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -188,8 +187,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Uint16List.view(typed_data_content));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -233,8 +231,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Int32List.view(typed_data_content));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -278,8 +275,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Uint32List.view(typed_data_content));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -323,8 +319,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Int64List.view(typed_data_content));
temp.deleteSync(recursive: true);
asyncEnd();
});
@@ -368,8 +363,7 @@ 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.buffer));
+ Expect.listEquals(expected, new Uint64List.view(typed_data_content));
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