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

Unified Diff: tests/language/rewrite_if_swap_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/language/rewrite_if_swap_test.dart
diff --git a/tests/language/rewrite_if_swap_test.dart b/tests/language/rewrite_if_swap_test.dart
index 0b515bf952e34a479a3a38611c2d93037ff6df2f..fbde49264724e7854b0259328c075bd8a5836527 100644
--- a/tests/language/rewrite_if_swap_test.dart
+++ b/tests/language/rewrite_if_swap_test.dart
@@ -7,27 +7,28 @@ import "package:expect/expect.dart";
var global = 0;
bar() {
- global += 1;
+ global += 1;
}
+
baz() {
- global += 100;
+ global += 100;
}
foo(b) {
- var old_backend_was_used;
- if (b ? false : true) {
- bar();
- bar();
- } else {
- baz();
- baz();
- }
+ var old_backend_was_used;
+ if (b ? false : true) {
+ bar();
+ bar();
+ } else {
+ baz();
+ baz();
+ }
}
main() {
- foo(true);
- Expect.equals(200, global);
+ foo(true);
+ Expect.equals(200, global);
- foo(false);
- Expect.equals(202, global);
+ foo(false);
+ Expect.equals(202, global);
}

Powered by Google App Engine
This is Rietveld 408576698