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

Unified Diff: tests/language/rewrite_for_update_order_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_for_update_order_test.dart
diff --git a/tests/language/rewrite_for_update_order_test.dart b/tests/language/rewrite_for_update_order_test.dart
index 80ed9de9182175758cbd840b28fa025326b9876b..ebdbbb146ab328d78e49e08d979c12e760ca6212 100644
--- a/tests/language/rewrite_for_update_order_test.dart
+++ b/tests/language/rewrite_for_update_order_test.dart
@@ -8,25 +8,26 @@ var counter = 0;
var global = 0;
test() {
- ++counter;
- return counter <= 2;
+ ++counter;
+ return counter <= 2;
}
first() {
- global = global + 1;
+ global = global + 1;
}
+
second() {
- global = global * 2;
+ global = global * 2;
}
foo() {
- while (test()) {
- first();
- second();
- }
+ while (test()) {
+ first();
+ second();
+ }
}
main() {
- foo();
- Expect.equals(6, global);
+ foo();
+ Expect.equals(6, global);
}

Powered by Google App Engine
This is Rietveld 408576698