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

Unified Diff: tests/lib/convert/chunked_conversion1_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/lib/convert/chunked_conversion1_test.dart
diff --git a/tests/lib/convert/chunked_conversion1_test.dart b/tests/lib/convert/chunked_conversion1_test.dart
index 7aa24e3a94f2ce1cde6de5700ae85cd227e36457..fb57d7de26117eee98f90e5bbce9cd4ef5e38159 100644
--- a/tests/lib/convert/chunked_conversion1_test.dart
+++ b/tests/lib/convert/chunked_conversion1_test.dart
@@ -82,10 +82,12 @@ class IntBoolConverter1Sink extends MyChunkedIntSink {
add(int i) {
outSink.specialB(i > 0);
}
+
specialI(int i) {
specialICounter++;
add(i);
}
+
close() => outSink.close();
}
@@ -101,6 +103,7 @@ class BoolIntConverter1Sink extends MyChunkedBoolSink {
specialBCounter++;
add(b);
}
+
close() => outSink.close();
}
@@ -125,8 +128,8 @@ main() {
// Test int->bool converter individually.
converter1 = new IntBoolConverter1();
- Expect.listEquals([true, false, true],
- [2, -2, 2].map(converter1.convert).toList());
+ Expect.listEquals(
+ [true, false, true], [2, -2, 2].map(converter1.convert).toList());
hasExecuted = false;
boolSink = new MyChunkedBoolSink.withCallback((value) {
hasExecuted = true;
@@ -144,8 +147,8 @@ main() {
// Test bool->int converter individually.
converter2 = new BoolIntConverter1();
- Expect.listEquals([1, 0, 1],
- [true, false, true].map(converter2.convert).toList());
+ Expect.listEquals(
+ [1, 0, 1], [true, false, true].map(converter2.convert).toList());
hasExecuted = false;
intSink = new MyChunkedIntSink.withCallback((value) {
hasExecuted = true;

Powered by Google App Engine
This is Rietveld 408576698