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 388e1bbd35a423baa86634c9c2ff0df1b9d21647..7102bd277f359813c071a9888a093b8312ce817b 100644 |
--- a/runtime/tests/vm/dart/byte_array_test.dart |
+++ b/runtime/tests/vm/dart/byte_array_test.dart |
@@ -86,7 +86,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int8List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [-128, 0, 1, 127]); |
+ array.setRange(3, 7, [-128, 0, 1, 127]); |
Expect.listEquals([0, 1, 2, -128, 0, 1, 127, 7, 8, 9], |
array); |
} |
@@ -166,7 +166,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint8List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [257, 0, 1, 255]); |
+ array.setRange(3, 7, [257, 0, 1, 255]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 255, 7, 8, 9], |
array); |
} |
@@ -244,7 +244,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint8ClampedList); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [257, 0, 1, 255]); |
+ array.setRange(3, 7, [257, 0, 1, 255]); |
Expect.listEquals([0, 1, 2, 255, 0, 1, 255, 7, 8, 9], array); |
} |
@@ -336,7 +336,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int16List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [-32768, 0, 1, 32767]); |
+ array.setRange(3, 7, [-32768, 0, 1, 32767]); |
Expect.listEquals([0, 1, 2, -32768, 0, 1, 32767, 7, 8, 9], |
array); |
} |
@@ -417,7 +417,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint16List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [0x10001, 0, 1, 0xFFFF]); |
+ array.setRange(3, 7, [0x10001, 0, 1, 0xFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFF, 7, 8, 9], |
array); |
} |
@@ -516,7 +516,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [-0x80000000, 0, 1, 0x7FFFFFFF]); |
+ array.setRange(3, 7, [-0x80000000, 0, 1, 0x7FFFFFFF]); |
Expect.listEquals([0, 1, 2, -0x80000000, 0, 1, 0x7FFFFFFF, 7, 8, 9], |
array); |
} |
@@ -600,7 +600,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [0x100000001, 0, 1, 0xFFFFFFFF]); |
+ array.setRange(3, 7, [0x100000001, 0, 1, 0xFFFFFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFFFFFF, 7, 8, 9], |
array); |
} |
@@ -700,7 +700,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [-0x8000000000000000, 0, 1, 0x7FFFFFFFFFFFFFFF]); |
+ array.setRange(3, 7, [-0x8000000000000000, 0, 1, 0x7FFFFFFFFFFFFFFF]); |
Expect.listEquals([0, 1, 2, -0x8000000000000000, 0, |
1, 0x7FFFFFFFFFFFFFFF, 7, 8, 9], |
array); |
@@ -785,7 +785,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- array.setRange(3, 4, [0x10000000000000001, 0, 1, 0xFFFFFFFFFFFFFFFF]); |
+ array.setRange(3, 7, [0x10000000000000001, 0, 1, 0xFFFFFFFFFFFFFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFFFFFFFFFFFFFF, 7, 8, 9], |
array); |
} |
@@ -855,7 +855,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Float32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3.0, 4.0, 5.0, 6.0], region); |
- array.setRange(3, 4, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
+ array.setRange(3, 7, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
Expect.listEquals([0.0, 1.0, 2.0, double.NEGATIVE_INFINITY, 0.0, |
1.0, double.INFINITY, 7.0, 8.0, 9.0], |
array); |
@@ -926,7 +926,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Float64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3.0, 4.0, 5.0, 6.0], region); |
- array.setRange(3, 4, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
+ array.setRange(3, 7, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
Expect.listEquals([0.0, 1.0, 2.0, double.NEGATIVE_INFINITY, 0.0, |
1.0, double.INFINITY, 7.0, 8.0, 9.0], |
array); |
@@ -1203,7 +1203,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int8List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [-128, 0, 1, 127]); |
+ view.setRange(3, 7, [-128, 0, 1, 127]); |
Expect.listEquals([0, 1, 2, -128, 0, 1, 127, 7, 8, 9], |
view); |
Expect.listEquals([0xFF, 0, 1, 2, 128, 0, 1, 127, 7, 8, 9, 0xFF], |
@@ -1316,7 +1316,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint8List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [257, 0, 1, 255]); |
+ view.setRange(3, 7, [257, 0, 1, 255]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 255, 7, 8, 9], |
view); |
} |
@@ -1450,7 +1450,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int16List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [-32768, 0, 1, 32767]); |
+ view.setRange(3, 7, [-32768, 0, 1, 32767]); |
Expect.listEquals([0, 1, 2, -32768, 0, 1, 32767, 7, 8, 9], |
view); |
Expect.listEquals([0xFF, 0xFF, 0x00, 0x00, 0x01, 0x00, 0x02, 0x00, |
@@ -1567,7 +1567,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint16List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [0x10001, 0, 1, 0xFFFF]); |
+ view.setRange(3, 7, [0x10001, 0, 1, 0xFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFF, 7, 8, 9], |
view); |
Expect.listEquals([-1, -1, 0, 0, 1, 0, 2, 0, |
@@ -1727,7 +1727,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [-0x80000000, 0, 1, 0x7FFFFFFF]); |
+ view.setRange(3, 7, [-0x80000000, 0, 1, 0x7FFFFFFF]); |
Expect.listEquals([0, 1, 2, -0x80000000, 0, 1, 0x7FFFFFFF, 7, 8, 9], |
view); |
Expect.listEquals([0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, |
@@ -1854,7 +1854,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [0x100000001, 0, 1, 0xFFFFFFFF]); |
+ view.setRange(3, 7, [0x100000001, 0, 1, 0xFFFFFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFFFFFF, 7, 8, 9], |
view); |
Expect.listEquals([-1, -1, -1, -1, 0, 0, 0, 0, |
@@ -2046,7 +2046,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Int64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [-0x8000000000000000, 0, 1, 0x7FFFFFFFFFFFFFFF]); |
+ view.setRange(3, 7, [-0x8000000000000000, 0, 1, 0x7FFFFFFFFFFFFFFF]); |
Expect.listEquals([0, 1, 2, -0x8000000000000000, 0, |
1, 0x7FFFFFFFFFFFFFFF, 7, 8, 9], |
view); |
@@ -2208,7 +2208,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Uint64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3, 4, 5, 6], region); |
- view.setRange(3, 4, [0x10000000000000001, 0, 1, 0xFFFFFFFFFFFFFFFF]); |
+ view.setRange(3, 7, [0x10000000000000001, 0, 1, 0xFFFFFFFFFFFFFFFF]); |
Expect.listEquals([0, 1, 2, 1, 0, 1, 0xFFFFFFFFFFFFFFFF, 7, 8, 9], |
view); |
Expect.listEquals([-1, -1, -1, -1, -1, -1, -1, -1, |
@@ -2320,7 +2320,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Float32List); |
Expect.equals(4, region.length); |
Expect.listEquals([3.0, 4.0, 5.0, 6.0], region); |
- view.setRange(3, 4, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
+ view.setRange(3, 7, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
Expect.listEquals([0.0, 1.0, 2.0, double.NEGATIVE_INFINITY, 0.0, |
1.0, double.INFINITY, 7.0, 8.0, 9.0], |
view); |
@@ -2427,7 +2427,7 @@ class ByteArrayTest { |
Expect.isTrue(copy is Float64List); |
Expect.equals(4, region.length); |
Expect.listEquals([3.0, 4.0, 5.0, 6.0], region); |
- view.setRange(3, 4, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
+ view.setRange(3, 7, [double.NEGATIVE_INFINITY, 0.0, 1.0, double.INFINITY]); |
Expect.listEquals([0.0, 1.0, 2.0, double.NEGATIVE_INFINITY, 0.0, |
1.0, double.INFINITY, 7.0, 8.0, 9.0], |
view); |