Chromium Code Reviews| Index: tests/html/keyboard_event_test.dart |
| diff --git a/tests/html/keyboard_event_test.dart b/tests/html/keyboard_event_test.dart |
| index 4f32f2dd1958523c851b4836dfd4b611d890a83e..6d254aebf225964beadd97f25237873428a5e818 100644 |
| --- a/tests/html/keyboard_event_test.dart |
| +++ b/tests/html/keyboard_event_test.dart |
| @@ -20,10 +20,10 @@ 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.window); |
| + var controller = new KeyboardEventController.keydown(document.query('body')); |
| var func = keydownHandlerTest; |
| controller.add(func); |
| - document.window.on.keyDown.add((e) => print('regular listener'), false); |
| + document.query('body').on.keyDown.add((e) => print('regular listener'), false); |
|
blois
2012/12/06 18:23:12
document.body?
Emily Fortuna
2012/12/06 18:27:49
It's "hidden" as $dom_body these days, so I though
|
| }); |
| } |