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

Unified Diff: tests/language_strong/const_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/const_test.dart
diff --git a/tests/language_strong/const_test.dart b/tests/language_strong/const_test.dart
index 65dc19d76f1f750ed5536257026bbf2c41fc8d83..4d3fa364b9d53e58c7a82551c7f0171e84c1258b 100644
--- a/tests/language_strong/const_test.dart
+++ b/tests/language_strong/const_test.dart
@@ -7,21 +7,24 @@
import "package:expect/expect.dart";
class AConst {
- const AConst() : b_ = 3 ;
+ const AConst() : b_ = 3;
final int b_;
}
-
class BConst {
const BConst();
set foo(value) {}
- get foo { return 5; }
+ get foo {
+ return 5;
+ }
+
+ operator [](ix) {
+ return ix;
+ }
- operator [](ix) { return ix; }
operator []=(ix, value) {}
}
-
testMain() {
var o = const AConst();
Expect.equals(3, o.b_);
@@ -33,7 +36,6 @@ testMain() {
Expect.equals(5, y);
}
-
main() {
for (int i = 0; i < 20; i++) {
testMain();

Powered by Google App Engine
This is Rietveld 408576698