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

Unified Diff: tests/html/keyboard_event_test.dart

Issue 12040059: Converting tests over to using event streams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/keyboard_event_test.dart
diff --git a/tests/html/keyboard_event_test.dart b/tests/html/keyboard_event_test.dart
index 0fe4fdbdab8ed2fd5e80fa849c359d4089c0590e..da0842aa9f3e6940306cc587aee8c3b3aa2ae40a 100644
--- a/tests/html/keyboard_event_test.dart
+++ b/tests/html/keyboard_event_test.dart
@@ -26,7 +26,7 @@ main() {
var controller = new KeyboardEventController.keydown(document.body);
var func = keydownHandlerTest;
controller.add(func);
- document.body.on.keyDown.add((e) => print('regular listener'), false);
+ document.body.onKeyDown.listen((e) => print('regular listener'));
});
}

Powered by Google App Engine
This is Rietveld 408576698