| Index: tests/html/typed_arrays_3_test.dart
|
| diff --git a/tests/html/typed_arrays_3_test.dart b/tests/html/typed_arrays_3_test.dart
|
| index 682b09e57d1d84647b30f6381849b193ccd02f45..f7fcd356044d8d98321734738d95cdfb1b1919df 100644
|
| --- a/tests/html/typed_arrays_3_test.dart
|
| +++ b/tests/html/typed_arrays_3_test.dart
|
| @@ -5,22 +5,22 @@
|
| library TypedArrays3Test;
|
| 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('setElementsTest_dynamic', () {
|
| - var a1 = new Int8Array(1024);
|
| + var a1 = new Int8List(1024);
|
|
|
| a1.setElements([0x50,0x60,0x70], 4);
|
|
|
| - var a2 = new Uint32Array.fromBuffer(a1.buffer);
|
| + var a2 = new Uint32List.fromBuffer(a1.buffer);
|
| expect(a2[0], 0x00000000);
|
| expect(a2[1], 0x00706050);
|
|
|
| @@ -30,11 +30,11 @@ main() {
|
| });
|
|
|
| test('setElementsTest_typed', () {
|
| - Int8Array a1 = new Int8Array(1024);
|
| + Int8List a1 = new Int8List(1024);
|
|
|
| a1.setElements([0x50,0x60,0x70], 4);
|
|
|
| - Uint32Array a2 = new Uint32Array.fromBuffer(a1.buffer);
|
| + Uint32List a2 = new Uint32List.fromBuffer(a1.buffer);
|
| expect(a2[0], 0x00000000);
|
| expect(a2[1], 0x00706050);
|
|
|
|
|