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

Unified Diff: tests/standalone/io/directory_invalid_arguments_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/standalone/io/directory_invalid_arguments_test.dart
diff --git a/tests/standalone/io/directory_invalid_arguments_test.dart b/tests/standalone/io/directory_invalid_arguments_test.dart
index e3e6bb61de81ff9f807035aaf49b48322b24a526..7b67ae35254a154e0ae5bad3d0d60d301f87a4d1 100644
--- a/tests/standalone/io/directory_invalid_arguments_test.dart
+++ b/tests/standalone/io/directory_invalid_arguments_test.dart
@@ -10,15 +10,14 @@ import "package:expect/expect.dart";
void testFailingList(Directory d, var recursive) {
asyncStart();
int errors = 0;
- d.list(recursive: recursive).listen(
- () => Expect.fail("Unexpected listing result"),
- onError: (error) {
- errors += 1;
- },
- onDone: () {
- Expect.equals(1, errors);
- asyncEnd();
- });
+ d
+ .list(recursive: recursive)
+ .listen(() => Expect.fail("Unexpected listing result"), onError: (error) {
+ errors += 1;
+ }, onDone: () {
+ Expect.equals(1, errors);
+ asyncEnd();
+ });
Expect.equals(0, errors);
}
@@ -31,8 +30,7 @@ void testInvalidArguments() {
}
Directory d = new Directory(".");
testFailingList(d, 1);
- Expect.throws(() => d.listSync(recursive: 1),
- (e) => e is ArgumentError);
+ Expect.throws(() => d.listSync(recursive: 1), (e) => e is ArgumentError);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698