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

Unified Diff: tests/language/await_regression_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/await_regression_test.dart
diff --git a/tests/language/await_regression_test.dart b/tests/language/await_regression_test.dart
index 90a562dd0a7d57a9b25ee8db91ea9c864b3aecb3..44031d8bb9fc1fa2b67fd500fd06c6db92dc0de5 100644
--- a/tests/language/await_regression_test.dart
+++ b/tests/language/await_regression_test.dart
@@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
//
-
import 'dart:async';
import 'package:expect/expect.dart';
@@ -24,9 +23,9 @@ addLater({a, b}) => new Future.value(a + b);
// Regression test for issue 21480.
testNamedArguments() async {
- var sum = await addLater(a:5, b:10);
+ var sum = await addLater(a: 5, b: 10);
Expect.equals(sum, 15);
- sum = await addLater(b:11, a:-11);
+ sum = await addLater(b: 11, a: -11);
Expect.equals(sum, 0);
}
@@ -36,6 +35,7 @@ testSideEffects() async {
Expect.equals(11, a2);
return new Future.value();
}
+
int a = 10;
await foo(a++, a++);
Expect.equals(12, a);

Powered by Google App Engine
This is Rietveld 408576698