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

Unified Diff: tests/html/wheelevent_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/wheelevent_test.dart
diff --git a/tests/html/wheelevent_test.dart b/tests/html/wheelevent_test.dart
index 4acb908b462e18c99c9675cc432fe76fa90c9fa6..d733a94f868e13b8d04ae93417e7a236738df943 100644
--- a/tests/html/wheelevent_test.dart
+++ b/tests/html/wheelevent_test.dart
@@ -16,7 +16,7 @@ main() {
var element = new DivElement();
var eventType = Element.mouseWheelEvent.getEventType(element);
- element.onMouseWheel.listen(expectAsync1((e) {
+ element.onMouseWheel.listen(expectAsync((e) {
expect(e.screen.x, 100);
expect(e.deltaX, 0);
expect(e.deltaY.toDouble(), 240.0);
@@ -33,7 +33,7 @@ main() {
var element = new DivElement();
var eventType = Element.mouseWheelEvent.getEventType(element);
- element.onMouseWheel.listen(expectAsync1((e) {
+ element.onMouseWheel.listen(expectAsync((e) {
expect(e.screen.x, 100);
expect(e.deltaX, 0);
expect(e.deltaY.toDouble(), 240.0);

Powered by Google App Engine
This is Rietveld 408576698