| Index: tests/html/typed_arrays_5_test.dart
|
| diff --git a/tests/html/typed_arrays_5_test.dart b/tests/html/typed_arrays_5_test.dart
|
| index f755d3185afa911acbb6e7cba3b92d1e4046f4d8..62e79983f0b3a02d6c4fd344377751c17ec6604f 100644
|
| --- a/tests/html/typed_arrays_5_test.dart
|
| +++ b/tests/html/typed_arrays_5_test.dart
|
| @@ -5,18 +5,18 @@
|
| library typed_arrays_5_test;
|
| import '../../pkg/unittest/lib/unittest.dart';
|
| import '../../pkg/unittest/lib/html_config.dart';
|
| -import 'dart:html';
|
| +import 'dart:typeddata';
|
|
|
| main() {
|
| useHtmlConfiguration();
|
|
|
| // Only perform tests if ArrayBuffer is supported.
|
| - if (!ArrayBuffer.supported) {
|
| + if (!ByteBuffer.supported) {
|
| return;
|
| }
|
|
|
| test('filter_dynamic', () {
|
| - var a = new Float32Array(1024);
|
| + var a = new Float32List(1024);
|
| for (int i = 0; i < a.length; i++) {
|
| a[i] = i;
|
| }
|
| @@ -25,7 +25,7 @@ main() {
|
| });
|
|
|
| test('filter_typed', () {
|
| - Float32Array a = new Float32Array(1024);
|
| + Float32List a = new Float32List(1024);
|
| for (int i = 0; i < a.length; i++) {
|
| a[i] = i;
|
| }
|
| @@ -34,7 +34,7 @@ main() {
|
| });
|
|
|
| test('contains', () {
|
| - var a = new Int16Array(1024);
|
| + var a = new Int16List(1024);
|
| for (int i = 0; i < a.length; i++) {
|
| a[i] = i;
|
| }
|
|
|