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

Unified Diff: tests/standalone/byte_array_test.dart

Issue 10379018: Revert "Revert "Implement {Int,Uint}{8,16,32,64} and Float{32,64} typed arrays."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« runtime/include/dart_api.h ('K') | « runtime/vm/snapshot_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/byte_array_test.dart
diff --git a/tests/standalone/byte_array_test.dart b/tests/standalone/byte_array_test.dart
index 9e950622404d0ec496c95073edf36d07fd5f5f93..2938576eb9345c41392b8845849be2515e5fdeec 100644
--- a/tests/standalone/byte_array_test.dart
+++ b/tests/standalone/byte_array_test.dart
@@ -5,12 +5,12 @@
// Dart test program for testing native byte arrays.
void testCreateByteArray() {
- ByteArray byteArray;
+ Uint8List byteArray;
- byteArray = new ByteArray(0);
+ byteArray = new Uint8List(0);
Expect.equals(0, byteArray.length);
- byteArray = new ByteArray(10);
+ byteArray = new Uint8List(10);
Expect.equals(10, byteArray.length);
for (int i = 0; i < 10; i++) {
Expect.equals(0, byteArray[i]);
@@ -18,7 +18,7 @@ void testCreateByteArray() {
}
void testSetRange() {
- ByteArray byteArray = new ByteArray(3);
+ Uint8List byteArray = new Uint8List(3);
List<int> list = [10, 11, 12];
byteArray.setRange(0, 3, list);
@@ -41,7 +41,7 @@ void testSetRange() {
}
void testIndexOutOfRange() {
- ByteArray byteArray = new ByteArray(3);
+ Uint8List byteArray = new Uint8List(3);
List<int> list = const [0, 1, 2, 3];
Expect.throws(() {
« runtime/include/dart_api.h ('K') | « runtime/vm/snapshot_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698