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

Unified Diff: tests/html/hidden_dom_2_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
===================================================================
--- tests/html/hidden_dom_2_test.dart (revision 14156)
+++ 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, isNoSuchMethodError);
}

Powered by Google App Engine
This is Rietveld 408576698