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

Unified Diff: tests/html/keyboard_event_test.dart

Issue 12419011: Modern-ify KeyEvent handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/keyboard_event_test.dart
diff --git a/tests/html/keyboard_event_test.dart b/tests/html/keyboard_event_test.dart
index da0842aa9f3e6940306cc587aee8c3b3aa2ae40a..6f415f214783d7d7636506910613a1f6b70be30c 100644
--- a/tests/html/keyboard_event_test.dart
+++ b/tests/html/keyboard_event_test.dart
@@ -23,9 +23,9 @@ main() {
// values (a KeyboardEvent can be "init"-ed but not all the information can
// be programmatically populated. It exists as an example for how to use
// KeyboardEventController more than anything else.
- var controller = new KeyboardEventController.keydown(document.body);
- var func = keydownHandlerTest;
- controller.add(func);
+ new KeyboardEventStream.onKeyDown(document.body).listen(
+ keydownHandlerTest);
+ KeyEvent.keyDownEvent.forTarget(document.body).listen(keydownHandlerTest);
Andrei Mouravski 2013/03/22 19:12:33 Is this actually testing anything? Can't you do so
Emily Fortuna 2013/03/22 22:53:58 KeyboardEvents cannot be programmatically construc
document.body.onKeyDown.listen((e) => print('regular listener'));
});
}

Powered by Google App Engine
This is Rietveld 408576698