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

Unified Diff: tests/lib/async/stream_join_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/async/stream_join_test.dart
diff --git a/tests/lib/async/stream_join_test.dart b/tests/lib/async/stream_join_test.dart
index 678502cd649694d89ee1f7654fa5e9dee7a5f120..cd038273d9d8ca504df273845141aeb4aa418aca 100644
--- a/tests/lib/async/stream_join_test.dart
+++ b/tests/lib/async/stream_join_test.dart
@@ -13,26 +13,24 @@ import "package:expect/expect.dart";
main() {
test("join-empty", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync(
- (String s) => expect(s, equals(""))
- ));
+ c.stream.join("X").then(expectAsync((String s) => expect(s, equals(""))));
c.close();
});
test("join-single", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync(
- (String s) => expect(s, equals("foo"))
- ));
+ c.stream
+ .join("X")
+ .then(expectAsync((String s) => expect(s, equals("foo"))));
c.add("foo");
c.close();
});
test("join-three", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync(
- (String s) => expect(s, equals("fooXbarXbaz"))
- ));
+ c.stream
+ .join("X")
+ .then(expectAsync((String s) => expect(s, equals("fooXbarXbaz"))));
c.add("foo");
c.add("bar");
c.add("baz");
@@ -41,9 +39,9 @@ main() {
test("join-three-non-string", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync(
- (String s) => expect(s, equals("fooXbarXbaz"))
- ));
+ c.stream
+ .join("X")
+ .then(expectAsync((String s) => expect(s, equals("fooXbarXbaz"))));
c.add(new Foo("foo"));
c.add(new Foo("bar"));
c.add(new Foo("baz"));
@@ -52,9 +50,9 @@ main() {
test("join-error", () {
StreamController c = new StreamController();
- c.stream.join("X").catchError(expectAsync(
- (String s) => expect(s, equals("BAD!"))
- ));
+ c.stream
+ .join("X")
+ .catchError(expectAsync((String s) => expect(s, equals("BAD!"))));
c.add(new Foo("foo"));
c.add(new Foo("bar"));
c.add(new Bad());

Powered by Google App Engine
This is Rietveld 408576698