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

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
« no previous file with comments | « sdk/lib/html/src/dartium_KeyEvent.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..20994ed0591c7b15ad82e8a10f36fba816bab357 100644
--- a/tests/html/keyboard_event_test.dart
+++ b/tests/html/keyboard_event_test.dart
@@ -20,10 +20,12 @@ 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);
});
}
« no previous file with comments | « 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