Chromium Code Reviews| Index: tests/html/typed_arrays_2_test.dart |
| diff --git a/tests/html/typed_arrays_2_test.dart b/tests/html/typed_arrays_2_test.dart |
| index f1824a98264d4f88c655034f820e512243e45dfc..6705833ff5a3e1e86a48402a9caf5645086bbff5 100644 |
| --- a/tests/html/typed_arrays_2_test.dart |
| +++ b/tests/html/typed_arrays_2_test.dart |
| @@ -37,7 +37,8 @@ main() { |
| Expect.equals(0xCFCECDCC, a2[1]); |
| Expect.equals(0x03020100, a2[14]); |
| - a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456); |
| + // OPTIONALS a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456); |
|
Emily Fortuna
2012/10/16 19:51:17
80 char, here and mutation_observer.
Anton Muhin
2012/10/17 09:13:38
Those optionals lines should go away soon, let's k
|
| + a2 = new Uint32Array.fromBuffer(a1.buffer, 456, 30); |
| Expect.equals(30, a2.length); |
| Expect.equals(0xCBCAC9C8, a2[0]); |
| Expect.equals(0xCFCECDCC, a2[1]); |
| @@ -69,7 +70,8 @@ main() { |
| Expect.equals(0xCFCECDCC, a2[1]); |
| Expect.equals(0x03020100, a2[14]); |
| - a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456); |
| + // OPTIONALS a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456); |
| + a2 = new Uint32Array.fromBuffer(a1.buffer, 456, 30); |
| Expect.equals(30, a2.length); |
| Expect.equals(0xCBCAC9C8, a2[0]); |
| Expect.equals(0xCFCECDCC, a2[1]); |