| 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 daa4ccff0694d7dca3fd3d3a6f9c2e826cfc0c05..a0792aa41ed5e9af33d5bae003b30c5293109cea 100644
|
| --- a/tests/html/typed_arrays_5_test.dart
|
| +++ b/tests/html/typed_arrays_5_test.dart
|
| @@ -27,4 +27,18 @@ main() {
|
|
|
| expect(a.filter((x) => x >= 1000).length, equals(24));
|
| });
|
| +
|
| + test('contains', () {
|
| + var a = new Int16Array(1024);
|
| + for (int i = 0; i < a.length; i++) {
|
| + a[i] = i;
|
| + }
|
| + expect(a.contains(0), isTrue);
|
| + expect(a.contains(5), isTrue);
|
| + expect(a.contains(1023), isTrue);
|
| +
|
| + expect(a.contains(-5), isFalse);
|
| + expect(a.contains(-1), isFalse);
|
| + expect(a.contains(1024), isFalse);
|
| + });
|
| }
|
|
|