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

Unified Diff: tests/compiler/dart2js/closure_tracer_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
« no previous file with comments | « tests/compiler/dart2js/closure_codegen_test.dart ('k') | tests/compiler/dart2js/code_motion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/closure_tracer_test.dart
diff --git a/tests/compiler/dart2js/closure_tracer_test.dart b/tests/compiler/dart2js/closure_tracer_test.dart
index f8718e46b71f2e9b5066b03adcd81645f7084cf3..110ccd447b6e3764d55b34f1efd00840594158b9 100644
--- a/tests/compiler/dart2js/closure_tracer_test.dart
+++ b/tests/compiler/dart2js/closure_tracer_test.dart
@@ -154,27 +154,27 @@ void main() {
Uri uri = new Uri(scheme: 'source');
var compiler = compilerFor(TEST, uri);
asyncTest(() => compiler.run(uri).then((_) {
- var commonMasks = compiler.commonMasks;
- var typesInferrer = compiler.globalInference.typesInferrer;
-
- checkType(String name, type) {
- var element = findElement(compiler, name);
- var mask = typesInferrer.getReturnTypeOfElement(element);
- Expect.equals(type.nullable(), simplify(mask, compiler), name);
- }
-
- checkType('testFunctionStatement', commonMasks.uint31Type);
- checkType('testFunctionExpression', commonMasks.uint31Type);
- checkType('testStoredInInstance', commonMasks.uint31Type);
- checkType('testStoredInStatic', commonMasks.uint31Type);
- checkType('testStoredInMapOfList', commonMasks.uint31Type);
- checkType('testStoredInListOfList', commonMasks.uint31Type);
- checkType('testStoredInListOfListUsingInsert', commonMasks.uint31Type);
- checkType('testStoredInListOfListUsingAdd', commonMasks.uint31Type);
- checkType('testPassedInParameter', commonMasks.uint31Type);
- checkType('testStaticClosure1', commonMasks.uint31Type);
- checkType('testStaticClosure2', commonMasks.numType);
- checkType('testStaticClosure3', commonMasks.uint31Type);
- checkType('testStaticClosure4', commonMasks.numType);
- }));
+ var commonMasks = compiler.commonMasks;
+ var typesInferrer = compiler.globalInference.typesInferrer;
+
+ checkType(String name, type) {
+ var element = findElement(compiler, name);
+ var mask = typesInferrer.getReturnTypeOfElement(element);
+ Expect.equals(type.nullable(), simplify(mask, compiler), name);
+ }
+
+ checkType('testFunctionStatement', commonMasks.uint31Type);
+ checkType('testFunctionExpression', commonMasks.uint31Type);
+ checkType('testStoredInInstance', commonMasks.uint31Type);
+ checkType('testStoredInStatic', commonMasks.uint31Type);
+ checkType('testStoredInMapOfList', commonMasks.uint31Type);
+ checkType('testStoredInListOfList', commonMasks.uint31Type);
+ checkType('testStoredInListOfListUsingInsert', commonMasks.uint31Type);
+ checkType('testStoredInListOfListUsingAdd', commonMasks.uint31Type);
+ checkType('testPassedInParameter', commonMasks.uint31Type);
+ checkType('testStaticClosure1', commonMasks.uint31Type);
+ checkType('testStaticClosure2', commonMasks.numType);
+ checkType('testStaticClosure3', commonMasks.uint31Type);
+ checkType('testStaticClosure4', commonMasks.numType);
+ }));
}
« no previous file with comments | « tests/compiler/dart2js/closure_codegen_test.dart ('k') | tests/compiler/dart2js/code_motion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698