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

Unified Diff: tests/lib_strong/html/hidden_dom_1_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/lib_strong/html/hidden_dom_1_test.dart
diff --git a/tests/lib_strong/html/hidden_dom_1_test.dart b/tests/lib_strong/html/hidden_dom_1_test.dart
index a1c5dc358fd8f0da3db56e51e0b411488f9678d8..9334b5e8054e34665c17bcf34000f2a47d7d5b52 100644
--- a/tests/lib_strong/html/hidden_dom_1_test.dart
+++ b/tests/lib_strong/html/hidden_dom_1_test.dart
@@ -14,16 +14,19 @@ Hello World!
Element e = document.query('#div1');
expect(e, isNotNull);
- expect(() { confuse(e).onfocus = null; }, throwsNoSuchMethodError);
+ expect(() {
+ confuse(e).onfocus = null;
+ }, throwsNoSuchMethodError);
});
-
}
class Decoy {
- void set onfocus(x) { throw 'dead code'; }
+ void set onfocus(x) {
+ throw 'dead code';
+ }
}
confuse(x) => opaqueTrue() ? x : (opaqueTrue() ? new Object() : new Decoy());
/** Returns `true`, but in a way that confuses the compiler. */
-opaqueTrue() => true; // Expand as needed.
+opaqueTrue() => true; // Expand as needed.

Powered by Google App Engine
This is Rietveld 408576698