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

Unified Diff: tests/html/transition_event_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/transition_event_test.dart
diff --git a/tests/html/transition_event_test.dart b/tests/html/transition_event_test.dart
index 8e041105354de264849adb5c517e88a7d0e59199..646061f218ed271236e9082ddfe6aef732c2b441 100644
--- a/tests/html/transition_event_test.dart
+++ b/tests/html/transition_event_test.dart
@@ -29,8 +29,8 @@ main() {
element.style.background = 'red';
element.style.transition = 'opacity .1s';
- new Timer(const Duration(milliseconds: 100), expectAsync0(() {
- element.onTransitionEnd.first.then(expectAsync1((e) {
+ new Timer(const Duration(milliseconds: 100), expectAsync(() {
+ element.onTransitionEnd.first.then(expectAsync((e) {
expect(e is TransitionEvent, isTrue);
expect(e.propertyName, 'opacity');
}));

Powered by Google App Engine
This is Rietveld 408576698