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

Unified Diff: tests/language_strong/rewrite_if_return_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_strong/rewrite_if_return_test.dart
diff --git a/tests/language_strong/rewrite_if_return_test.dart b/tests/language_strong/rewrite_if_return_test.dart
index ae282360af94d2b3f70e09b6a1c0801e777d3f8f..3c576052d91087269bf39cc456b58abd15f59e36 100644
--- a/tests/language_strong/rewrite_if_return_test.dart
+++ b/tests/language_strong/rewrite_if_return_test.dart
@@ -7,41 +7,41 @@ import "package:expect/expect.dart";
var global = 0;
bar() {
- global = 1;
+ global = 1;
}
baz() {
- global = 2;
+ global = 2;
}
return_const(b) {
- if (b) {
- bar();
- return 1;
- } else {
- baz();
- return 1;
- }
+ if (b) {
+ bar();
+ return 1;
+ } else {
+ baz();
+ return 1;
+ }
}
return_var(b, x) {
- if (b) {
- bar();
- return x;
- } else {
- baz();
- return x;
- }
+ if (b) {
+ bar();
+ return x;
+ } else {
+ baz();
+ return x;
+ }
}
main() {
- return_const(true);
- Expect.equals(1, global);
- return_const(false);
- Expect.equals(2, global);
-
- Expect.equals(4, return_var(true, 4));
- Expect.equals(1, global);
- Expect.equals(5, return_var(false, 5));
- Expect.equals(2, global);
+ return_const(true);
+ Expect.equals(1, global);
+ return_const(false);
+ Expect.equals(2, global);
+
+ Expect.equals(4, return_var(true, 4));
+ Expect.equals(1, global);
+ Expect.equals(5, return_var(false, 5));
+ Expect.equals(2, global);
}

Powered by Google App Engine
This is Rietveld 408576698