| Index: tests/html/typed_arrays_range_checks_test.dart
|
| diff --git a/tests/html/typed_arrays_range_checks_test.dart b/tests/html/typed_arrays_range_checks_test.dart
|
| index 7c1debfa43744a1f70cbc98a5afc21b1cb4b5004..6995afac7243b0dd36478cbb25641289903be880 100644
|
| --- a/tests/html/typed_arrays_range_checks_test.dart
|
| +++ b/tests/html/typed_arrays_range_checks_test.dart
|
| @@ -5,18 +5,18 @@
|
| library TypedArraysRangeCheckTest;
|
| 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('outOfRangeAccess_dynamic', () {
|
| - var a = new Uint8Array(1024);
|
| + var a = new Uint8List(1024);
|
|
|
| expect(a[a.length], isNull);
|
| expect(a[a.length + 1], isNull);
|
| @@ -37,7 +37,7 @@ main() {
|
| });
|
|
|
| test('outOfRange_typed', () {
|
| - Uint8Array a = new Uint8Array(1024);
|
| + Uint8List a = new Uint8List(1024);
|
|
|
| expect(a[a.length], isNull);
|
| expect(a[a.length + 1], isNull);
|
|
|