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

Unified Diff: tests/language/execute_finally5_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/execute_finally5_test.dart
diff --git a/tests/language/execute_finally5_test.dart b/tests/language/execute_finally5_test.dart
index 37fa316da2278c60baeb265f28933c5c406aa5b6..09cbdc15579f53c0fe562e87e840d0dac566764f 100644
--- a/tests/language/execute_finally5_test.dart
+++ b/tests/language/execute_finally5_test.dart
@@ -6,9 +6,8 @@
import "package:expect/expect.dart";
-
class Helper {
- Helper() : i = 0 { }
+ Helper() : i = 0 {}
int f1(int param) {
if (param == 0) {
@@ -17,32 +16,32 @@ class Helper {
j = func();
try {
i = 1;
- return i; // Value of i is 1 on return.
+ return i; // Value of i is 1 on return.
} finally {
- i = i + 400; // Should get executed when we return.
+ i = i + 400; // Should get executed when we return.
}
- i = 2; // Should not get executed.
+ i = 2; // Should not get executed.
return i;
} finally {
- i = i + 800; // Should get executed when we return.
+ i = i + 800; // Should get executed when we return.
}
- return i + 200; // Should not get executed.
+ return i + 200; // Should not get executed.
}
try {
int j;
j = func();
try {
i = 4;
- return i; // Value of i is 1 on return.
+ return i; // Value of i is 1 on return.
} finally {
- i = i + 100; // Should get executed when we return.
+ i = i + 100; // Should get executed when we return.
}
- i = 2; // Should not get executed.
+ i = 2; // Should not get executed.
return i;
} finally {
- i = i + 200; // Should get executed when we return.
+ i = i + 200; // Should get executed when we return.
}
- return i + 200; // Should not get executed.
+ return i + 200; // Should not get executed.
}
static int func() {

Powered by Google App Engine
This is Rietveld 408576698