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

Unified Diff: tests/html/postmessage_structured_test.dart

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert generated files for html lib Created 7 years, 8 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
Index: tests/html/postmessage_structured_test.dart
diff --git a/tests/html/postmessage_structured_test.dart b/tests/html/postmessage_structured_test.dart
index ba3542035719f959ea6dd54e5434bc0d945e3a9e..3cc6f6189a14949ef6087303a12ff99b41e4c7a6 100644
--- a/tests/html/postmessage_structured_test.dart
+++ b/tests/html/postmessage_structured_test.dart
@@ -7,6 +7,7 @@ import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:html';
import 'dart:collection'; // SplayTreeMap
+import 'dart:typeddata';
import 'utils.dart';
injectSource(code) {
@@ -136,9 +137,9 @@ main() {
});
group('typed_arrays', () {
- 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 array_buffer = new Uint8List(16);
+ var view_a = new Float32List.view(array_buffer, 0, 4);
+ var view_b = new Uint8List.view(array_buffer, 1, 13);
var typed_arrays_list = [view_a, array_buffer, view_b];
// Note that FF is failing this test because in the sent message:

Powered by Google App Engine
This is Rietveld 408576698