| Index: runtime/tests/vm/dart/byte_array_test.dart
|
| diff --git a/runtime/tests/vm/dart/byte_array_test.dart b/runtime/tests/vm/dart/byte_array_test.dart
|
| index 876642a3e12eb4798acc2deae619aa190562fe53..a8458b54a0ab0e4d351e6cf22fee7f491f2a3cd2 100644
|
| --- a/runtime/tests/vm/dart/byte_array_test.dart
|
| +++ b/runtime/tests/vm/dart/byte_array_test.dart
|
| @@ -91,12 +91,8 @@ class ByteArrayTest {
|
| static testInt8List() {
|
| Expect.throws(() { new Int8List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Int8List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Int8List(10);
|
| testInt8ListImpl(array);
|
| - array = new Int8List.transferable(10);
|
| - testInt8ListImpl(array);
|
| }
|
|
|
| static testUint8ListImpl(Uint8List array) {
|
| @@ -170,12 +166,8 @@ class ByteArrayTest {
|
| static testUint8List() {
|
| Expect.throws(() { new Uint8List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Uint8List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Uint8List(10);
|
| testUint8ListImpl(array);
|
| - array = new Uint8List.transferable(10);
|
| - testUint8ListImpl(array);
|
| }
|
|
|
| static testUint8ClampedListImpl(Uint8ClampedList array) {
|
| @@ -245,12 +237,8 @@ class ByteArrayTest {
|
| static testUint8ClampedList() {
|
| Expect.throws(() { new Uint8ClampedList(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Uint8ClampedList.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Uint8ClampedList(10);
|
| testUint8ClampedListImpl(array);
|
| - array = new Uint8ClampedList.transferable(10);
|
| - testUint8ClampedListImpl(array);
|
| }
|
|
|
| static testInt16ListImpl(Int16List array) {
|
| @@ -336,12 +324,8 @@ class ByteArrayTest {
|
| static testInt16List() {
|
| Expect.throws(() { new Int16List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Int16List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Int16List(10);
|
| testInt16ListImpl(array);
|
| - array = new Int16List.transferable(10);
|
| - testInt16ListImpl(array);
|
| }
|
|
|
| static testUint16ListImpl(Uint16List array) {
|
| @@ -415,12 +399,8 @@ class ByteArrayTest {
|
| static testUint16List() {
|
| Expect.throws(() { new Uint16List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Uint16List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Uint16List(10);
|
| testUint16ListImpl(array);
|
| - array = new Uint16List.transferable(10);
|
| - testUint16ListImpl(array);
|
| }
|
|
|
| static testInt32ListImpl(Int32List array) {
|
| @@ -512,12 +492,8 @@ class ByteArrayTest {
|
| static testInt32List() {
|
| Expect.throws(() { new Int32List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Int32List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Int32List(10);
|
| testInt32ListImpl(array);
|
| - array = new Int32List.transferable(10);
|
| - testInt32ListImpl(array);
|
| }
|
|
|
| static testUint32ListImpl(Uint32List array) {
|
| @@ -598,8 +574,6 @@ class ByteArrayTest {
|
| (e) { return e is ArgumentError; });
|
| var array = new Uint32List(10);
|
| testUint32ListImpl(array);
|
| - array = new Uint32List.transferable(10);
|
| - testUint32ListImpl(array);
|
|
|
| }
|
|
|
| @@ -693,12 +667,8 @@ class ByteArrayTest {
|
| static testInt64List() {
|
| Expect.throws(() { new Int64List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Int64List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Int64List(10);
|
| testInt64ListImpl(array);
|
| - array = new Int64List.transferable(10);
|
| - testInt64ListImpl(array);
|
| }
|
|
|
| static testUint64ListImpl(Uint64List array) {
|
| @@ -775,12 +745,8 @@ class ByteArrayTest {
|
| static testUint64List() {
|
| Expect.throws(() { new Uint64List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Uint64List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Uint64List(10);
|
| testUint64ListImpl(array);
|
| - array = new Uint64List.transferable(10);
|
| - testUint64ListImpl(array);
|
| }
|
|
|
| static testFloat32ListImpl(Float32List array) {
|
| @@ -844,12 +810,8 @@ class ByteArrayTest {
|
| static testFloat32List() {
|
| Expect.throws(() { new Float32List(-1); },
|
| (e) { return e is ArgumentError; });
|
| - Expect.throws(() { new Float32List.transferable(-1); },
|
| - (e) { return e is ArgumentError; });
|
| var array = new Float32List(10);
|
| testFloat32ListImpl(array);
|
| - array = new Float32List.transferable(10);
|
| - testFloat32ListImpl(array);
|
| }
|
|
|
| static testFloat64ListImpl(Float64List array) {
|
| @@ -915,8 +877,6 @@ class ByteArrayTest {
|
| (e) { return e is ArgumentError; });
|
| var array = new Float64List(10);
|
| testFloat64ListImpl(array);
|
| - array = new Float64List.transferable(10);
|
| - testFloat64ListImpl(array);
|
| }
|
|
|
| static testByteList() {
|
| @@ -1188,8 +1148,6 @@ class ByteArrayTest {
|
| static testInt8ListView() {
|
| var array = new Uint8List(12);
|
| testInt8ListViewImpl(array);
|
| - array = new Uint8List.transferable(12);
|
| - testInt8ListViewImpl(array);
|
| }
|
|
|
| static testUint8ListViewImpl(var array) {
|
| @@ -1298,8 +1256,6 @@ class ByteArrayTest {
|
| static testUint8ListView() {
|
| var array = new Int8List(12);
|
| testUint8ListViewImpl(array);
|
| - array = new Int8List.transferable(12);
|
| - testUint8ListViewImpl(array);
|
| }
|
|
|
| static testInt16ListViewImpl(var array) {
|
| @@ -1434,8 +1390,6 @@ class ByteArrayTest {
|
| static testInt16ListView() {
|
| var array = new Uint8List(24);
|
| testInt16ListViewImpl(array);
|
| - array = new Uint8List.transferable(24);
|
| - testInt16ListViewImpl(array);
|
| }
|
|
|
| static testUint16ListViewImpl(var array) {
|
| @@ -1549,8 +1503,6 @@ class ByteArrayTest {
|
| static testUint16ListView() {
|
| var array = new Int8List(24);
|
| testUint16ListViewImpl(array);
|
| - array = new Int8List.transferable(24);
|
| - testUint16ListViewImpl(array);
|
| }
|
|
|
| static testInt32ListView() {
|
| @@ -1835,8 +1787,6 @@ class ByteArrayTest {
|
| static testUint32ListView() {
|
| var array = new Int8List(48);
|
| testUint32ListViewImpl(array);
|
| - array = new Int8List.transferable(48);
|
| - testUint32ListViewImpl(array);
|
| }
|
|
|
| static testInt64ListViewImpl(var array) {
|
| @@ -2032,8 +1982,6 @@ class ByteArrayTest {
|
| static testInt64ListView() {
|
| var array = new Uint8List(96);
|
| testInt64ListViewImpl(array);
|
| - array = new Uint8List.transferable(96);
|
| - testInt64ListViewImpl(array);
|
| }
|
|
|
| static testUint64ListViewImpl(var array) {
|
| @@ -2191,8 +2139,6 @@ class ByteArrayTest {
|
| static testUint64ListView() {
|
| var array = new Int8List(96);
|
| testUint64ListViewImpl(array);
|
| - array = new Int8List.transferable(96);
|
| - testUint64ListViewImpl(array);
|
| }
|
|
|
| static testFloat32ListViewImpl(var array) {
|
| @@ -2296,8 +2242,6 @@ class ByteArrayTest {
|
| static testFloat32ListView() {
|
| var array = new Uint32List(12);
|
| testFloat32ListViewImpl(array);
|
| - array = new Uint32List.transferable(12);
|
| - testFloat32ListViewImpl(array);
|
| }
|
|
|
| static testFloat64ListViewImpl(var array) {
|
| @@ -2401,8 +2345,6 @@ class ByteArrayTest {
|
| static testFloat64ListView() {
|
| var array = new Uint64List(12);
|
| testFloat64ListViewImpl(array);
|
| - array = new Uint64List.transferable(12);
|
| - testFloat64ListViewImpl(array);
|
| }
|
|
|
| static testMain() {
|
|
|