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

Unified Diff: tests/lib_strong/html/hidden_dom_2_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_2_test.dart
diff --git a/tests/lib_strong/html/hidden_dom_2_test.dart b/tests/lib_strong/html/hidden_dom_2_test.dart
index 5e638b11dcb12ea1fd6ddc029b95b35594e99dc8..5d4d05d07f22f2aabeb2ab1f2f7402d41a24ffd9 100644
--- a/tests/lib_strong/html/hidden_dom_2_test.dart
+++ b/tests/lib_strong/html/hidden_dom_2_test.dart
@@ -15,16 +15,19 @@ Hello World!
Element e2 = new Element.html(r"<div id='xx'>XX</div>");
expect(e, isNotNull);
- expect(() { confuse(e).appendChild(e2); }, throwsNoSuchMethodError);
-
+ expect(() {
+ confuse(e).appendChild(e2);
+ }, throwsNoSuchMethodError);
});
}
class Decoy {
- void appendChild(x) { throw 'dead code'; }
+ void appendChild(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