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

Unified Diff: tests/html/document_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/document_test.dart
===================================================================
--- tests/html/document_test.dart (revision 14114)
+++ tests/html/document_test.dart (working copy)
@@ -8,9 +8,11 @@
test('CreateElement', () {
// FIXME: nifty way crashes, do it boring way.
- Expect.isTrue(new Element.tag('span') is Element);
- Expect.isTrue(new Element.tag('div') is DivElement);
- Expect.isTrue(new Element.tag('a') is AnchorElement);
- Expect.isTrue(new Element.tag('bad_name') is UnknownElement);
+ expect(new Element.tag('span'), new isInstanceOf<Element>('Element'));
+ expect(new Element.tag('div'), new isInstanceOf<DivElement>('DivElement'));
+ expect(new Element.tag('a'),
+ new isInstanceOf<AnchorElement>('AnchorElement'));
+ expect(new Element.tag('bad_name'),
+ new isInstanceOf<Element>(' is UnknownElement'));
});
}

Powered by Google App Engine
This is Rietveld 408576698