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

Unified Diff: tests/html/unknownelement_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/unknownelement_test.dart
===================================================================
--- tests/html/unknownelement_test.dart (revision 14156)
+++ tests/html/unknownelement_test.dart (working copy)
@@ -10,6 +10,9 @@
main() {
useHtmlConfiguration();
+ var isUnknownElement =
+ predicate((x) => x is UnknownElement, 'is an UnknownELement');
+
var foo = new Element.tag('foo');
foo.id = 'foo';
var bar = new Element.tag('bar');
@@ -17,8 +20,8 @@
document.body.nodes.addAll([foo, bar]);
test('type-check', () {
- expect(foo is UnknownElement, isTrue);
- expect(bar is UnknownElement, isTrue);
+ expect(foo, isUnknownElement);
+ expect(bar, isUnknownElement);
expect(query('#foo'), equals(foo));
expect(query('#bar'), equals(bar));
});

Powered by Google App Engine
This is Rietveld 408576698