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

Unified Diff: tests/language/execute_finally8_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_finally8_test.dart
diff --git a/tests/language/execute_finally8_test.dart b/tests/language/execute_finally8_test.dart
index f597c68864118889447924f301f2144ebeb1c3fb..c697eee5505fa74160175df8836782ada042eba2 100644
--- a/tests/language/execute_finally8_test.dart
+++ b/tests/language/execute_finally8_test.dart
@@ -7,75 +7,73 @@
import "package:expect/expect.dart";
class Hello {
- static var sum;
+ static var sum;
- static foo() {
- sum = 0;
- try {
- sum += 1;
- return 'hi';
- } finally {
- sum += 1;
- throw 'ball';
- sum += 1;
- }
- }
+ static foo() {
+ sum = 0;
+ try {
+ sum += 1;
+ return 'hi';
+ } finally {
+ sum += 1;
+ throw 'ball';
+ sum += 1;
+ }
+ }
- static foo1() {
- bool loop = true;
- sum = 0;
- L:
- while (loop) {
- try {
- sum += 1;
- return 'hi';
- } finally {
- sum += 1;
- break L;
- sum += 1;
- }
- }
- }
+ static foo1() {
+ bool loop = true;
+ sum = 0;
+ L:
+ while (loop) {
+ try {
+ sum += 1;
+ return 'hi';
+ } finally {
+ sum += 1;
+ break L;
+ sum += 1;
+ }
+ }
+ }
- static foo2() {
- bool loop = true;
- sum = 0;
- try {
- sum += 1;
- return 'hi';
- } finally {
- sum += 1;
- return 10;
- sum += 1;
- }
- }
+ static foo2() {
+ bool loop = true;
+ sum = 0;
+ try {
+ sum += 1;
+ return 'hi';
+ } finally {
+ sum += 1;
+ return 10;
+ sum += 1;
+ }
+ }
- static foo3() {
- sum = 0;
- try {
- sum += 1;
- return 'hi';
- } finally {
- sum += 1;
- return 10;
- sum += 1;
- }
- }
-
- static void main() {
- foo1();
- Expect.equals(2, sum);
- foo2();
- Expect.equals(2, sum);
- foo3();
- Expect.equals(2, sum);
- try {
- foo();
- } catch (e) {
- }
- Expect.equals(2, sum);
- }
+ static foo3() {
+ sum = 0;
+ try {
+ sum += 1;
+ return 'hi';
+ } finally {
+ sum += 1;
+ return 10;
+ sum += 1;
+ }
+ }
+ static void main() {
+ foo1();
+ Expect.equals(2, sum);
+ foo2();
+ Expect.equals(2, sum);
+ foo3();
+ Expect.equals(2, sum);
+ try {
+ foo();
+ } catch (e) {}
+ Expect.equals(2, sum);
+ }
}
main() {

Powered by Google App Engine
This is Rietveld 408576698