Index: tests/html/hidden_dom_2_test.dart |
=================================================================== |
--- tests/html/hidden_dom_2_test.dart (revision 14114) |
+++ tests/html/hidden_dom_2_test.dart (working copy) |
@@ -16,7 +16,7 @@ |
</div>''')); |
Element e = document.query('#div1'); |
Element e2 = new Element.html(r"<div id='xx'>XX</div>"); |
- Expect.isTrue(e != null); |
+ expect(e, isNotNull); |
checkNoSuchMethod(() { confuse(e).appendChild(e2); }); |
@@ -42,7 +42,7 @@ |
ex = e; |
} |
if (!threw) |
- Expect.fail('Action should have thrown exception'); |
+ expect(false, isTrue, reason: 'Action should have thrown exception'); |
- Expect.isTrue(ex is NoSuchMethodError, 'ex is NoSuchMethodError'); |
+ expect(ex, new isInstanceOf<NoSuchMethodError>('NoSuchMethodError')); |
} |