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

Unified Diff: tests/standalone/typed_data_test.dart

Issue 138033002: Make VM TypedList not implement ByteBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove cast. 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/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 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);
« 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