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

Unified Diff: tests/language/execute_finally9_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_finally9_test.dart
diff --git a/tests/language/execute_finally9_test.dart b/tests/language/execute_finally9_test.dart
index ac5360025e7e5dab7555cce717de485688f9e1f3..5513466d77ea77827a3d3711669b3a3827e6fd90 100644
--- a/tests/language/execute_finally9_test.dart
+++ b/tests/language/execute_finally9_test.dart
@@ -7,60 +7,61 @@
import "package:expect/expect.dart";
class Hello {
- static var sum;
+ static var sum;
- static foo() {
- sum = 0;
- try {
- sum += 1;
- return 'hi';
- } catch (e) {
- sum += 1;
- throw 'ball';
- sum += 1;
- } finally {
- sum += 1;
- throw 'ball';
- sum += 1;
- }
- }
+ static foo() {
+ sum = 0;
+ try {
+ sum += 1;
+ return 'hi';
+ } catch (e) {
+ sum += 1;
+ throw 'ball';
+ sum += 1;
+ } finally {
+ sum += 1;
+ throw 'ball';
+ sum += 1;
+ }
+ }
- static foo1() {
- bool loop = true;
- sum = 0;
- L:while (loop) {
- try {
- sum += 1;
- return 'hi';
- } catch (ex) {
- sum += 1;
- } finally {
- try {
- L1:while (loop) {
- sum += 1;
- break L;
- sum += 1;
- }
- } catch (ex) {
- sum += 1;
- } finally {
- sum += 1;
- }
- }
- }
- }
-
- static void main() {
- foo1();
- Expect.equals(3, sum);
- try {
- foo();
- } catch (e) {
- // Ignore.
- }
- Expect.equals(2, sum);
- }
+ static foo1() {
+ bool loop = true;
+ sum = 0;
+ L:
+ while (loop) {
+ try {
+ sum += 1;
+ return 'hi';
+ } catch (ex) {
+ sum += 1;
+ } finally {
+ try {
+ L1:
+ while (loop) {
+ sum += 1;
+ break L;
+ sum += 1;
+ }
+ } catch (ex) {
+ sum += 1;
+ } finally {
+ sum += 1;
+ }
+ }
+ }
+ }
+ static void main() {
+ foo1();
+ Expect.equals(3, sum);
+ try {
+ foo();
+ } catch (e) {
+ // Ignore.
+ }
+ Expect.equals(2, sum);
+ }
}
main() {

Powered by Google App Engine
This is Rietveld 408576698