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

Unified Diff: tests/utils/recursive_import_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/utils/recursive_import_test.dart
diff --git a/tests/utils/recursive_import_test.dart b/tests/utils/recursive_import_test.dart
index 5c1c6a3cd2c322858b4a27256d79d4b0ff1f6ea7..61c1a30248cb02c9c68ada3144be5ba17bb39cad 100644
--- a/tests/utils/recursive_import_test.dart
+++ b/tests/utils/recursive_import_test.dart
@@ -16,7 +16,6 @@ import 'recurse/fisk.dart';
main() {}
""";
-
main() {
int count = 0;
Future<String> provider(Uri uri) {
@@ -30,7 +29,7 @@ main() {
} else if (uri.scheme == "lib") {
source = libProvider(uri);
} else {
- return new Future.error("unexpected URI $uri");
+ return new Future.error("unexpected URI $uri");
}
return new Future.value(source);
}
@@ -54,11 +53,12 @@ main() {
}
asyncStart();
- Future<CompilationResult> result =
- compile(new Uri(scheme: 'main'),
- new Uri(scheme: 'lib', path: '/'),
- new Uri(scheme: 'package', path: '/'),
- provider, handler);
+ Future<CompilationResult> result = compile(
+ new Uri(scheme: 'main'),
+ new Uri(scheme: 'lib', path: '/'),
+ new Uri(scheme: 'package', path: '/'),
+ provider,
+ handler);
result.then((CompilationResult result) {
Expect.isFalse(result.isSuccess);
Expect.isTrue(10 < count);
@@ -67,6 +67,6 @@ main() {
Expect.equals(2 * (count - 1), warningCount);
Expect.equals(1, errorCount);
}, onError: (e, s) {
- throw 'Compilation failed: $e\n$s';
+ throw 'Compilation failed: $e\n$s';
}).then(asyncSuccess);
}

Powered by Google App Engine
This is Rietveld 408576698