| Index: tests/html/typed_arrays_4_test.dart
|
| diff --git a/tests/html/typed_arrays_4_test.dart b/tests/html/typed_arrays_4_test.dart
|
| index 45852d0239edbf2f8a3ad35a27b25fac1c209f90..23fbe34509a274289f7ece9ae00717e36480bfb1 100644
|
| --- a/tests/html/typed_arrays_4_test.dart
|
| +++ b/tests/html/typed_arrays_4_test.dart
|
| @@ -5,18 +5,18 @@
|
| library TypedArrays4Test;
|
| 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('indexOf_dynamic', () {
|
| - var a1 = new Uint8Array(1024);
|
| + var a1 = new Uint8List(1024);
|
| for (int i = 0; i < a1.length; i++) {
|
| a1[i] = i;
|
| }
|
| @@ -31,7 +31,7 @@ main() {
|
| });
|
|
|
| test('indexOf_typed', () {
|
| - Uint8Array a1 = new Uint8Array(1024);
|
| + Uint8List a1 = new Uint8List(1024);
|
| for (int i = 0; i < a1.length; i++) {
|
| a1[i] = i;
|
| }
|
|
|