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

Unified Diff: tests/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/html/hidden_dom_2_test.dart
diff --git a/tests/html/hidden_dom_2_test.dart b/tests/html/hidden_dom_2_test.dart
index e8abc4eee6192db3aeb01a7d882ff5d52857ff4e..4257a9aabcd7419b445adfa9e7219c1934d88957 100644
--- a/tests/html/hidden_dom_2_test.dart
+++ b/tests/html/hidden_dom_2_test.dart
@@ -1,4 +1,5 @@
library HiddenDom2Test;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -18,19 +19,22 @@ Hello World!
Element e2 = new Element.html(r"<div id='xx'>XX</div>");
expect(e, isNotNull);
- checkNoSuchMethod(() { confuse(e).appendChild(e2); });
-
+ checkNoSuchMethod(() {
+ confuse(e).appendChild(e2);
+ });
});
}
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.
checkNoSuchMethod(action()) {
var ex = null;

Powered by Google App Engine
This is Rietveld 408576698