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

Unified Diff: tests/standalone/typed_data_test.dart

Issue 13244003: Fixed typed_data_test to use correct object (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « no previous file | 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 9b31a2a59faab71c8f1b9ba1c90a7bf306547a3b..665e05c61ecec07ce8f44269355a1ea78e6db8ef 100644
--- a/tests/standalone/typed_data_test.dart
+++ b/tests/standalone/typed_data_test.dart
@@ -218,7 +218,7 @@ void testIndexOf() {
}
void testGetAtIndex(TypedData list, num initial_value) {
- var bdata = new ByteData.view(list);
+ var bdata = new ByteData.view(list.buffer);
for (int i = 0; i < bdata.lengthInBytes; i++) {
Expect.equals(42, bdata.getUint8(i));
Expect.equals(42, bdata.getInt8(i));
@@ -247,7 +247,7 @@ void testSetAtIndex(TypedData list,
if (reinit) list[i] = use_double? 0.0 : 0;
}
}
- var bdata = new ByteData.view(list);
+ var bdata = new ByteData.view(list.buffer);
for (int i = 0; i < bdata.lengthInBytes; i++) bdata.setUint8(i, 42);
validate();
for (int i = 0; i < bdata.lengthInBytes; i++) bdata.setInt8(i, 42);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698