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

Unified Diff: tests/html/postmessage_structured_test.dart

Issue 12670003: Add special treatement for typed arrays... (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 | tests/html/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/postmessage_structured_test.dart
diff --git a/tests/html/postmessage_structured_test.dart b/tests/html/postmessage_structured_test.dart
index 0eb79f44469fc952b9c09f5452cdd1d6fdb764da..76860eaa55b1b91190c3e00b8907d5174a6b1021 100644
--- a/tests/html/postmessage_structured_test.dart
+++ b/tests/html/postmessage_structured_test.dart
@@ -122,6 +122,11 @@ main() {
var cyclic_list = [1, 2, 3];
cyclic_list[1] = cyclic_list;
+ var array_buffer = new ArrayBuffer(16);
+ var view_a = new Float32Array.fromBuffer(array_buffer, 0, 4);
+ var view_b = new Uint8Array.fromBuffer(array_buffer, 1, 13);
+ var typed_arrays_list = [view_a, array_buffer, view_b];
+
go('test_simple_list', [1, 2, 3]);
go('test_map', obj1);
go('test_DAG', obj2);
@@ -132,4 +137,5 @@ main() {
go('array_deferred_copy', [1,2,3, obj3, obj3, 6]);
go('array_deferred_copy_2', [1,2,3, [4, 5, obj3], [obj3, 6]]);
go('cyclic_list', cyclic_list);
+ go('typed_arrays_list', typed_arrays_list);
}
« no previous file with comments | « no previous file | tests/html/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698