Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(650)

Unified Diff: tests/html/typed_arrays_3_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/html/typed_arrays_3_test.dart
diff --git a/tests/html/typed_arrays_3_test.dart b/tests/html/typed_arrays_3_test.dart
index efa4e17471d7cd9f7ce16697c224e56b0eb024af..b523c4c4c0dacc2c1b6f2447365fdb0204ddde98 100644
--- a/tests/html/typed_arrays_3_test.dart
+++ b/tests/html/typed_arrays_3_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library TypedArrays3Test;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -17,30 +18,30 @@ main() {
}
test('setElementsTest_dynamic', () {
- var a1 = new Int8List(1024);
+ var a1 = new Int8List(1024);
- a1.setRange(4, 7, [0x50,0x60,0x70]);
+ a1.setRange(4, 7, [0x50, 0x60, 0x70]);
- var a2 = new Uint32List.view(a1.buffer);
- expect(a2[0], 0x00000000);
- expect(a2[1], 0x00706050);
+ var a2 = new Uint32List.view(a1.buffer);
+ expect(a2[0], 0x00000000);
+ expect(a2[1], 0x00706050);
- a2.setRange(2, 3, [0x01020304]);
- expect(a1[8], 0x04);
- expect(a1[11], 0x01);
+ a2.setRange(2, 3, [0x01020304]);
+ expect(a1[8], 0x04);
+ expect(a1[11], 0x01);
});
test('setElementsTest_typed', () {
- Int8List a1 = new Int8List(1024);
+ Int8List a1 = new Int8List(1024);
- a1.setRange(4, 7, [0x50,0x60,0x70]);
+ a1.setRange(4, 7, [0x50, 0x60, 0x70]);
- Uint32List a2 = new Uint32List.view(a1.buffer);
- expect(a2[0], 0x00000000);
- expect(a2[1], 0x00706050);
+ Uint32List a2 = new Uint32List.view(a1.buffer);
+ expect(a2[0], 0x00000000);
+ expect(a2[1], 0x00706050);
- a2.setRange(2, 3, [0x01020304]);
- expect(a1[8], 0x04);
- expect(a1[11], 0x01);
+ a2.setRange(2, 3, [0x01020304]);
+ expect(a1[8], 0x04);
+ expect(a1[11], 0x01);
});
}

Powered by Google App Engine
This is Rietveld 408576698