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

Unified Diff: tests/html/keyboard_event_test.dart

Issue 11453027: Fixed a lot of dartanalyzer static analysis issues with the html lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 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
});
}
« sdk/lib/html/src/dartium_KeyEvent.dart ('K') | « sdk/lib/html/src/dartium_KeyEvent.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698