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

Unified Diff: tests/language_strong/call_closurization_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_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);
}

Powered by Google App Engine
This is Rietveld 408576698