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

Unified Diff: tests/compiler/dart2js_extra/closure_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_extra/closure_test.dart
diff --git a/tests/compiler/dart2js_extra/closure_test.dart b/tests/compiler/dart2js_extra/closure_test.dart
index b0bdeec5f64c2de36ccf796f2b60b332ae4a5ef9..5ad42476c7dfa2c1e079bfb8af9deab7ccde56f1 100644
--- a/tests/compiler/dart2js_extra/closure_test.dart
+++ b/tests/compiler/dart2js_extra/closure_test.dart
@@ -5,13 +5,17 @@
import "package:expect/expect.dart";
closure0() {
- var f = () { return 499; };
+ var f = () {
+ return 499;
+ };
Expect.equals(499, f());
}
class A {
closure1() {
- var f = () { return 499; };
+ var f = () {
+ return 499;
+ };
Expect.equals(499, f());
}
}
@@ -21,11 +25,15 @@ applyFun(f) {
}
closure2() {
- Expect.equals(499, applyFun(() { return 499; }));
+ Expect.equals(499, applyFun(() {
+ return 499;
+ }));
}
closure3() {
- var f = (x) { return 400 + x; };
+ var f = (x) {
+ return 400 + x;
+ };
Expect.equals(499, f(99));
}
@@ -34,7 +42,9 @@ applyFun2(f) {
}
closure4() {
- Expect.equals(499, applyFun2((x, y) { return x + y; }));
+ Expect.equals(499, applyFun2((x, y) {
+ return x + y;
+ }));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698