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; |