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

Side by Side Diff: tests/html/keyboard_event_test.dart

Issue 11416249: Make KeyboardEvent cross-browser consistent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: documentation fix 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library KeyboardEventTest;
2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart';
4 import 'dart:html';
5
6 // Test that we are correctly determining keyCode and charCode uniformly across
7 // browsers.
8
9 main() {
10
11 useHtmlConfiguration();
Emily Fortuna 2012/11/28 22:58:12 again, not a real test. more for user testing than
12
13 keydownHandlerTest(KeyEvent e) {
14 print('keycode ${e.keyCode}');
15 print('charcode ${e.charCode}');
16 //expect(e.charCode, 0);
17 //expect(e.keyCode, 0);
18 }
19
20 test('keys', () {
21 var controller = new KeyboardEventController.keydown(document.window);
22 controller.add(keydownHandlerTest);
23 document.window.on.keyDown.add((e) => print('regular listener'), false);
24 });
25 }
26
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698