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

Unified Diff: tests/html/xmlelement_test.dart

Issue 10412015: aChange all asyncTest/callbackDone style tests to use the new expectAsync/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/xmlelement_test.dart
===================================================================
--- tests/html/xmlelement_test.dart (revision 7823)
+++ tests/html/xmlelement_test.dart (working copy)
@@ -563,14 +563,14 @@
});
});
- asyncTest('default rect values', 1, () {
- makeElement().rect.then((ElementRect rect) {
- expectEmptyRect(rect.client);
- expectEmptyRect(rect.offset);
- expectEmptyRect(rect.scroll);
- expectEmptyRect(rect.bounding);
- Expect.isTrue(rect.clientRects.isEmpty());
- callbackDone();
- });
+ test('default rect values', () {
+ makeElement().rect.then(
+ expectAsync1(ElementRect rect) {
+ expectEmptyRect(rect.client);
+ expectEmptyRect(rect.offset);
+ expectEmptyRect(rect.scroll);
+ expectEmptyRect(rect.bounding);
+ Expect.isTrue(rect.clientRects.isEmpty());
+ }));
});
}

Powered by Google App Engine
This is Rietveld 408576698