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

Unified Diff: tests/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/html/hidden_dom_1_test.dart
diff --git a/tests/html/hidden_dom_1_test.dart b/tests/html/hidden_dom_1_test.dart
index 120136b5a3da6069887ad8d67cd68acb304979d3..7b7f3dc934455fd8e82ed4a0a608a002c20efe5b 100644
--- a/tests/html/hidden_dom_1_test.dart
+++ b/tests/html/hidden_dom_1_test.dart
@@ -1,4 +1,5 @@
library HiddenDom1Test;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
@@ -17,19 +18,22 @@ Hello World!
Element e = document.query('#div1');
expect(e, isNotNull);
- checkNoSuchMethod(() { confuse(e).onfocus = null; });
+ checkNoSuchMethod(() {
+ confuse(e).onfocus = null;
+ });
});
-
}
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.
checkNoSuchMethod(action()) {
var ex = null;

Powered by Google App Engine
This is Rietveld 408576698