| Index: tests/html/typed_arrays_dataview_test.dart
|
| diff --git a/tests/html/typed_arrays_dataview_test.dart b/tests/html/typed_arrays_dataview_test.dart
|
| index a56aecd27ea23c9841787a93d862575cd3eeaca7..c8bd6a171ea5046222a2c4c4b47df142831455d7 100644
|
| --- a/tests/html/typed_arrays_dataview_test.dart
|
| +++ b/tests/html/typed_arrays_dataview_test.dart
|
| @@ -3,6 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| library typed_arrays_dataview_test;
|
| +
|
| import 'package:unittest/unittest.dart';
|
| import 'package:unittest/html_config.dart';
|
| import 'dart:html';
|
| @@ -21,7 +22,7 @@ main() {
|
| expect(bd.lengthInBytes, 100);
|
| expect(bd.offsetInBytes, 0);
|
|
|
| - var a1 = new Uint8List.fromList([1,2,3,4,5,6,7,8]);
|
| + var a1 = new Uint8List.fromList([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
|
| var bd2 = new ByteData.view(a1.buffer);
|
| expect(bd2.lengthInBytes, 8);
|
| @@ -37,7 +38,7 @@ main() {
|
| });
|
|
|
| test('access8', () {
|
| - var a1 = new Uint8List.fromList([0,0,3,255,0,0,0,0,0,0]);
|
| + var a1 = new Uint8List.fromList([0, 0, 3, 255, 0, 0, 0, 0, 0, 0]);
|
|
|
| var bd = new ByteData.view(a1.buffer, 2, 6);
|
|
|
| @@ -56,7 +57,7 @@ main() {
|
| });
|
|
|
| test('access16', () {
|
| - var a1 = new Uint8List.fromList([0,0,3,255,0,0,0,0,0,0]);
|
| + var a1 = new Uint8List.fromList([0, 0, 3, 255, 0, 0, 0, 0, 0, 0]);
|
|
|
| var bd = new ByteData.view(a1.buffer, 2);
|
|
|
| @@ -76,7 +77,7 @@ main() {
|
| });
|
|
|
| test('access32', () {
|
| - var a1 = new Uint8List.fromList([0,0,3,255,0,0,0,0,0,0]);
|
| + var a1 = new Uint8List.fromList([0, 0, 3, 255, 0, 0, 0, 0, 0, 0]);
|
|
|
| var bd = new ByteData.view(a1.buffer);
|
|
|
| @@ -88,5 +89,4 @@ main() {
|
| expect(bd.getUint32(0, Endianness.BIG_ENDIAN), equals(1023));
|
| expect(bd.getUint32(0, Endianness.LITTLE_ENDIAN), equals(0xFF030000));
|
| });
|
| -
|
| }
|
|
|