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

Unified Diff: tests/html/client_rect_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/client_rect_test.dart
===================================================================
--- tests/html/client_rect_test.dart (revision 14156)
+++ tests/html/client_rect_test.dart (working copy)
@@ -5,6 +5,9 @@
main() {
+ var isClientRectList =
+ predicate((x) => x is List<ClientRect>, 'is a List<ClientRect>');
+
insertTestDiv() {
var element = new Element.tag('div');
element.innerHTML = r'''
@@ -21,7 +24,7 @@
test("ClientRectList test", () {
insertTestDiv();
var range = document.createRange();
- List<ClientRect> rects = range.getClientRects();
- Expect.isTrue(rects is List<ClientRect>);
+ var rects = range.getClientRects();
+ expect(rects, isClientRectList);
});
}

Powered by Google App Engine
This is Rietveld 408576698