Index: tests/language_strong/call_closurization_test.dart |
diff --git a/tests/language_strong/call_closurization_test.dart b/tests/language_strong/call_closurization_test.dart |
index 6c8dc71096c5cbca834c7b110cf245df0fec16f6..d9249610fff8259fb313d4dd2d2d187f180bd877 100644 |
--- a/tests/language_strong/call_closurization_test.dart |
+++ b/tests/language_strong/call_closurization_test.dart |
@@ -9,6 +9,7 @@ main() { |
bar(a) { |
return a is String; |
} |
+ |
var bar_tearOff = bar.call; |
for (var i = 0; i < 20; i++) { |
@@ -36,13 +37,15 @@ main() { |
for (var i = 0; i < 20; i++) { |
Expect.equals("1122", named_arg_tearOff()); |
Expect.equals("1122", named_arg_tearOff.call()); |
- Expect.equals("4455", named_arg_tearOff(y:55, x:44)); |
- Expect.equals("4455", named_arg_tearOff.call(y:55, x:44)); |
- Expect.equals("4455", named_arg_tearOff(x:44, y:55)); |
- Expect.equals("4455", named_arg_tearOff.call(x:44, y:55)); |
+ Expect.equals("4455", named_arg_tearOff(y: 55, x: 44)); |
+ Expect.equals("4455", named_arg_tearOff.call(y: 55, x: 44)); |
+ Expect.equals("4455", named_arg_tearOff(x: 44, y: 55)); |
+ Expect.equals("4455", named_arg_tearOff.call(x: 44, y: 55)); |
} |
Expect.throws(() => bar_tearOff.call(), (e) => e is NoSuchMethodError); |
- Expect.throws(() => opt_arg_tearOff.call(x:"p"), (e) => e is NoSuchMethodError); |
- Expect.throws(() => named_arg_tearOff.call("p", "q"), (e) => e is NoSuchMethodError); |
+ Expect.throws( |
+ () => opt_arg_tearOff.call(x: "p"), (e) => e is NoSuchMethodError); |
+ Expect.throws( |
+ () => named_arg_tearOff.call("p", "q"), (e) => e is NoSuchMethodError); |
} |