Index: tests/standalone/typed_data_test.dart |
diff --git a/tests/standalone/typed_data_test.dart b/tests/standalone/typed_data_test.dart |
index 99ab2a34288d9031933472fdf691bf5ec7d1acf1..5a2d6ad70ba11ea788dbe9a17f65bb1945c0c212 100644 |
--- a/tests/standalone/typed_data_test.dart |
+++ b/tests/standalone/typed_data_test.dart |
@@ -169,7 +169,7 @@ void testIndexOutOfRangeHelper(typed_data, value) { |
Expect.throws(() { |
var size = typed_data.elementSizeInBytes; |
- var i = (typed_data.length - 1) * size + 1; |
+ var i = (typed_data.length - 1) * size + 1; |
typed_data[new C(i)] = value; |
}); |
@@ -296,7 +296,7 @@ void testSetAtIndex(TypedData list, |
} |
testViewCreation() { |
- var bytes = new Uint8List(1024); |
+ var bytes = new Uint8List(1024).buffer; |
var view = new ByteData.view(bytes, 24); |
Expect.equals(1000, view.lengthInBytes); |
view = new Uint8List.view(bytes, 24); |