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

Unified Diff: tests/language/implicit_closure1_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/implicit_closure1_test.dart
diff --git a/tests/language/implicit_closure1_test.dart b/tests/language/implicit_closure1_test.dart
index f23ee68324371a03957c84f392e914799bb24020..4a8a4f4c459eedce7e9cca0caed026c0acc0485b 100644
--- a/tests/language/implicit_closure1_test.dart
+++ b/tests/language/implicit_closure1_test.dart
@@ -6,18 +6,24 @@
typedef Handler(bool e);
class Hello {
- Hello() {}
- void handler2(bool e) { print('handler2'); }
- static void handler1(bool e) { print('handler1'); }
- void addEventListener(String s, Handler handler, bool status) {
- handler(status);
- }
+ Hello() {}
+ void handler2(bool e) {
+ print('handler2');
+ }
- static void main() {
- final h = new Hello();
- h.addEventListener('click', handler1, false);
- h.addEventListener('click', h.handler2, false);
- }
+ static void handler1(bool e) {
+ print('handler1');
+ }
+
+ void addEventListener(String s, Handler handler, bool status) {
+ handler(status);
+ }
+
+ static void main() {
+ final h = new Hello();
+ h.addEventListener('click', handler1, false);
+ h.addEventListener('click', h.handler2, false);
+ }
}
main() {

Powered by Google App Engine
This is Rietveld 408576698