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

Unified Diff: tests/utils/dummy_compiler_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/dummy_compiler_test.dart
diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
index c8becb309c3ac346c9be96418a2fd7ec453bfc99..f1f085797f39261cc5039a53d941887435eab3c3 100644
--- a/tests/utils/dummy_compiler_test.dart
+++ b/tests/utils/dummy_compiler_test.dart
@@ -15,7 +15,8 @@ import '../compiler/dart2js/mock_libraries.dart';
String libProvider(Uri uri) {
if (uri.path.endsWith(".platform")) {
return DEFAULT_PLATFORM_CONFIG;
- } if (uri.path.endsWith("/core.dart")) {
+ }
+ if (uri.path.endsWith("/core.dart")) {
return buildLibrarySource(DEFAULT_CORE_LIBRARY);
} else if (uri.path.endsWith('core_patch.dart')) {
return DEFAULT_PATCH_CORE_SOURCE;
@@ -39,7 +40,7 @@ Future<String> provider(Uri uri) {
} else if (uri.scheme == "lib") {
source = libProvider(uri);
} else {
- throw "unexpected URI $uri";
+ throw "unexpected URI $uri";
}
return new Future.value(source);
}
@@ -54,16 +55,17 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
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) {
if (!result.isSuccess) {
throw 'Compilation failed';
}
}, 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