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(); |
}); |