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

Unified Diff: tests/standalone/typed_data_test.dart

Issue 339763002: Make TypedList not implement ByteBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/standalone/io/file_typed_data_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/typed_data_test.dart
diff --git a/tests/standalone/typed_data_test.dart b/tests/standalone/typed_data_test.dart
index 44297659c84edf19bb35b63b40ab79e84c71ce0b..669bee077943103f626834dceda6663ca08b1506 100644
--- a/tests/standalone/typed_data_test.dart
+++ b/tests/standalone/typed_data_test.dart
@@ -175,7 +175,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;
});
@@ -302,7 +302,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);
« no previous file with comments | « tests/standalone/io/file_typed_data_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698