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

Unified Diff: tests/language/equality_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/equality_test.dart
diff --git a/tests/language/equality_test.dart b/tests/language/equality_test.dart
index ed6d2271738cea7c704b45c06492c89d2822a711..6b8a9206fa5664465cd30cf4eaf664a816327bdb 100644
--- a/tests/language/equality_test.dart
+++ b/tests/language/equality_test.dart
@@ -5,18 +5,20 @@
import "package:expect/expect.dart";
-
class A {
bool _result;
A(this._result);
- operator ==(x) { return _result; }
+ operator ==(x) {
+ return _result;
+ }
}
-
-opaque(x) => [x,1,'y'][0]; // confuse the optimizers.
+opaque(x) => [x, 1, 'y'][0]; // confuse the optimizers.
class Death {
- operator ==(x) { throw 'Dead!'; }
+ operator ==(x) {
+ throw 'Dead!';
+ }
}
death() => opaque(new Death());
@@ -47,8 +49,7 @@ tests() {
if (death() == nullFn()) {
throw "failed";
}
- if (death() != nullFn()) {
- } else {
+ if (death() != nullFn()) {} else {
throw "failed";
}
}

Powered by Google App Engine
This is Rietveld 408576698