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

Unified Diff: tests/html/element_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 3d6c8ee242a4670f53dd2d0187f5596a93255fc2..936eb68db2d97f32551376701e9d12caeb957ab9 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -774,14 +774,14 @@ main() {
document.body.append(selectorOne);
document.body.append(selectorTwo);
- document.body.onClick.matches('.selector').listen(expectAsync1(
+ document.body.onClick.matches('.selector').listen(expectAsync(
(Event event) {
expect(event.currentTarget, document.body);
expect(event.target, clickOne);
expect(event.matchingTarget, selectorOne);
}));
- selectorOne.onClick.matches('.selector').listen(expectAsync1(
+ selectorOne.onClick.matches('.selector').listen(expectAsync(
(Event event) {
expect(event.currentTarget, selectorOne);
expect(event.target, clickOne);

Powered by Google App Engine
This is Rietveld 408576698