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

Unified Diff: tests/compiler/dart2js/check_elements_invariants_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/compiler/dart2js/check_elements_invariants_test.dart
diff --git a/tests/compiler/dart2js/check_elements_invariants_test.dart b/tests/compiler/dart2js/check_elements_invariants_test.dart
index 7216a059b7d7da373cea193d004da59404abdead..e0c5ee53555249e14eb6f16a3011a4a86d2fdc12 100644
--- a/tests/compiler/dart2js/check_elements_invariants_test.dart
+++ b/tests/compiler/dart2js/check_elements_invariants_test.dart
@@ -6,24 +6,21 @@ import 'dart:async';
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/apiimpl.dart';
import 'package:expect/expect.dart';
-import 'package:compiler/src/elements/elements.dart'
- show ClassElement;
+import 'package:compiler/src/elements/elements.dart' show ClassElement;
import 'package:compiler/src/resolution/class_members.dart'
show ClassMemberMixin;
import 'memory_compiler.dart';
-
-const String DART2JS_SOURCE =
- 'pkg/compiler/lib/src/dart2js.dart';
+const String DART2JS_SOURCE = 'pkg/compiler/lib/src/dart2js.dart';
const List<String> DART2JS_OPTIONS = const <String>[
- '--categories=Client,Server',
- '--disable-type-inference'
- ];
+ '--categories=Client,Server',
+ '--disable-type-inference'
+];
Iterable<ClassElement> computeLiveClasses(CompilerImpl compiler) {
return new Set<ClassElement>()
- ..addAll(compiler.resolverWorld.directlyInstantiatedClasses)
- ..addAll(compiler.codegenWorld.directlyInstantiatedClasses);
+ ..addAll(compiler.resolverWorld.directlyInstantiatedClasses)
+ ..addAll(compiler.codegenWorld.directlyInstantiatedClasses);
}
void checkClassInvariants(ClassElement cls) {
@@ -40,7 +37,7 @@ Future checkElementInvariantsAfterCompiling(Uri uri) async {
computeLiveClasses(result.compiler).forEach(checkClassInvariants);
}
-void main () {
+void main() {
var uri = Uri.base.resolve(DART2JS_SOURCE);
asyncTest(() => checkElementInvariantsAfterCompiling(uri));
}
« no previous file with comments | « tests/compiler/dart2js/call_site_simple_type_inferer_test.dart ('k') | tests/compiler/dart2js/check_members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698