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

Unified Diff: tests/language/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/const_test.dart
diff --git a/tests/language/const_test.dart b/tests/language/const_test.dart
index 9cdb07db2e85f3e33073208ddcf20e15d67cf0f7..d97f547524a0c8483c8fcdfc6bd2f87818b0465f 100644
--- a/tests/language/const_test.dart
+++ b/tests/language/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