Index: tests/language_strong/await_test.dart |
diff --git a/tests/language_strong/await_test.dart b/tests/language_strong/await_test.dart |
index cb779d92029d4e515948e882ed7218c2d1dc6a79..fe3bac40fed9b295238829c2ed8ed6f936f4f123 100644 |
--- a/tests/language_strong/await_test.dart |
+++ b/tests/language_strong/await_test.dart |
@@ -21,6 +21,7 @@ class C { |
static void set staticSetter(val) { |
staticField = val; |
} |
+ |
static int staticFoo(int param) => param; |
int field = 1; |
@@ -28,6 +29,7 @@ class C { |
void set setter(val) { |
field = val; |
} |
+ |
int foo(int param) => param; |
} |
@@ -45,10 +47,10 @@ staticMembers() async { |
var d = C.staticFoo(2) + await dummy(); |
Expect.equals(d, 3); |
var e = C.staticField + |
- C.staticGetter + |
- (C.staticSetter = 1) + |
- C.staticFoo(1) + |
- await dummy(); |
+ C.staticGetter + |
+ (C.staticSetter = 1) + |
+ C.staticFoo(1) + |
+ await dummy(); |
Expect.equals(e, 5); |
} |
@@ -62,10 +64,10 @@ topLevelMembers() async { |
var d = topLevelFoo(1) + await dummy(); |
Expect.equals(d, 2); |
var e = globalVariable + |
- topLevelGetter + |
- (topLevelSetter = 1) + |
- topLevelFoo(1) + |
- await dummy(); |
+ topLevelGetter + |
+ (topLevelSetter = 1) + |
+ topLevelFoo(1) + |
+ await dummy(); |
Expect.equals(e, 5); |
} |
@@ -80,10 +82,10 @@ instanceMembers() async { |
var d = inst.foo(1) + await dummy(); |
Expect.equals(d, 2); |
var e = inst.field + |
- inst.getter + |
- (inst.setter = 1) + |
- inst.foo(1) + |
- await dummy(); |
+ inst.getter + |
+ (inst.setter = 1) + |
+ inst.foo(1) + |
+ await dummy(); |
Expect.equals(e, 5); |
} |
@@ -98,7 +100,7 @@ others() async { |
var d = c.nooooo() + await dummy(); |
} catch (e) {} |
var cnt = 2; |
- var b = [1,2,3]; |
+ var b = [1, 2, 3]; |
b[cnt] = await dummy(); |
Expect.equals(b[cnt], 1); |
var e = b[0] + await dummy(); |
@@ -117,7 +119,7 @@ conditionals() async { |
Expect.equals(e, 2); |
try { |
var f = (a is int) ? await dummy() : 2; |
- } catch(e) {} |
+ } catch (e) {} |
} |
main() { |
@@ -129,4 +131,3 @@ main() { |
others(); |
} |
} |
- |