| Index: tests/language/await_future_test.dart
|
| diff --git a/tests/language/await_future_test.dart b/tests/language/await_future_test.dart
|
| index 8a03792e1c407b4e58baeabe8b957e7afb8d39e5..9d0c17e2cf902c8d3384a25572dd346f78f200b1 100644
|
| --- a/tests/language/await_future_test.dart
|
| +++ b/tests/language/await_future_test.dart
|
| @@ -16,7 +16,7 @@ baz(p) => new Future(() => p);
|
|
|
| foo() async {
|
| var b = 0;
|
| - for(int i = 0; i < 10; i++) {
|
| + for (int i = 0; i < 10; i++) {
|
| b += (await bar(1)) + (await baz(2));
|
| }
|
| return b;
|
| @@ -60,7 +60,7 @@ nesting() async {
|
| try {
|
| var z = (await bar(3)) + x;
|
| throw z;
|
| - } catch (e1) {
|
| + } catch (e1) {
|
| return e1;
|
| }
|
| };
|
| @@ -74,7 +74,7 @@ nesting() async {
|
| }
|
| }
|
|
|
| -awaitAsUnary(a,b) async {
|
| +awaitAsUnary(a, b) async {
|
| return await a + await b;
|
| }
|
|
|
| @@ -86,7 +86,7 @@ awaitIf(p) async {
|
| }
|
| }
|
|
|
| -awaitNestedIf(p,q) async {
|
| +awaitNestedIf(p, q) async {
|
| if (p == (await bar(5))) {
|
| if (q < (await bar(7))) {
|
| return "q<7";
|
| @@ -115,7 +115,7 @@ awaitReturn() async {
|
| }
|
|
|
| awaitSwitch() async {
|
| - switch(await bar(3)) {
|
| + switch (await bar(3)) {
|
| case 1:
|
| return 1;
|
| break;
|
| @@ -138,7 +138,7 @@ awaitNestedWhile(int i, int j) async {
|
| var k = 0;
|
| while ((await decI()) > 0) {
|
| j = savedJ;
|
| - while(0 < (await decJ())) {
|
| + while (0 < (await decJ())) {
|
| k++;
|
| }
|
| }
|
| @@ -158,16 +158,16 @@ awaitNestedDoWhile(int i, int j) async {
|
| do {
|
| k++;
|
| } while (0 < (await decI()));
|
| - } while((await decJ()) > 0);
|
| + } while ((await decJ()) > 0);
|
| return k;
|
| }
|
|
|
| awaitFor() async {
|
| - var asyncInc = (p) async => p+1;
|
| + var asyncInc = (p) async => p + 1;
|
| var k = 0;
|
| for (int j = (await bar(0)), i = (await bar(1));
|
| - j < (await bar(5));
|
| - j = (await asyncInc(j)), i = (await asyncInc(i))) {
|
| + j < (await bar(5));
|
| + j = (await asyncInc(j)), i = (await asyncInc(i))) {
|
| k += i;
|
| k += j;
|
| }
|
| @@ -200,11 +200,11 @@ test() async {
|
| Expect.equals("p<5", result);
|
| result = await awaitIf(5);
|
| Expect.equals("p>=5", result);
|
| - result = await awaitNestedIf(5,3);
|
| + result = await awaitNestedIf(5, 3);
|
| Expect.equals("q<7", result);
|
| - result = await awaitNestedIf(5,8);
|
| + result = await awaitNestedIf(5, 8);
|
| Expect.equals("q>=7", result);
|
| - result = await awaitNestedIf(3,8);
|
| + result = await awaitNestedIf(3, 8);
|
| Expect.equals("p!=5", result);
|
| result = await awaitReturn();
|
| Expect.equals(17, result);
|
| @@ -216,9 +216,9 @@ test() async {
|
| Expect.equals("p<5", result);
|
| result = await awaitElseIf(5);
|
| Expect.equals("p==5", result);
|
| - result = await awaitNestedWhile(5,3);
|
| + result = await awaitNestedWhile(5, 3);
|
| Expect.equals(15, result);
|
| - result = await awaitNestedWhile(4,6);
|
| + result = await awaitNestedWhile(4, 6);
|
| Expect.equals(24, result);
|
| result = await awaitAsUnary(bar(1), bar(2));
|
| Expect.equals(3, result);
|
|
|