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

Unified Diff: tests/standalone/io/directory_chdir_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_chdir_test.dart
diff --git a/tests/standalone/io/directory_chdir_test.dart b/tests/standalone/io/directory_chdir_test.dart
index 3613aad7cd1cd079a41354c43c624ac5285e0887..d1ae9b822d99e3250401cfe1ba3f12557a2f19c3 100644
--- a/tests/standalone/io/directory_chdir_test.dart
+++ b/tests/standalone/io/directory_chdir_test.dart
@@ -4,7 +4,6 @@
//
// Directory listing test.
-
import "dart:io";
import "package:async_helper/async_helper.dart";
@@ -39,18 +38,16 @@ testChangeDirectory() {
});
}
-
testChangeDirectoryIllegalArguments() {
Expect.throws(() => Directory.current = 1, (e) => e is ArgumentError);
Expect.throws(() => Directory.current = 111111111111111111111111111111111111,
- (e) => e is ArgumentError);
+ (e) => e is ArgumentError);
Expect.throws(() => Directory.current = true, (e) => e is ArgumentError);
Expect.throws(() => Directory.current = [], (e) => e is ArgumentError);
- Expect.throws(() => Directory.current = new File("xxx"),
- (e) => e is ArgumentError);
+ Expect.throws(
+ () => Directory.current = new File("xxx"), (e) => e is ArgumentError);
}
-
main() {
testChangeDirectory();
testChangeDirectoryIllegalArguments();

Powered by Google App Engine
This is Rietveld 408576698