| 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);
|
| document.body.onKeyDown.listen((e) => print('regular listener'));
|
| });
|
| }
|
|
|