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

Side by Side Diff: client/tests/client/dom/KeyNameLocationTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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
1 #library('KeyNameLocationTest'); 1 #library('KeyNameLocationTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 // Test for existence of some KeyName and KeyLocation constants. 5 // Test for existence of some KeyName and KeyLocation constants.
6 6
7 main() { 7 main() {
8 8
9 forLayoutTests(); 9 forLayoutTests();
10 10
11 test('keyNames', () { 11 test('keyNames', () {
12 Expect.equals("DownLeft", KeyName.DOWN_LEFT); 12 Expect.equals("DownLeft", KeyName.DOWN_LEFT);
13 Expect.equals("Fn", KeyName.FN); 13 Expect.equals("Fn", KeyName.FN);
14 Expect.equals("F1", KeyName.F1); 14 Expect.equals("F1", KeyName.F1);
15 Expect.equals("Meta", KeyName.META); 15 Expect.equals("Meta", KeyName.META);
16 Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK); 16 Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK);
17 Expect.equals("NumLock", KeyName.NUM_LOCK); 17 Expect.equals("NumLock", KeyName.NUM_LOCK);
18 Expect.equals("PageDown", KeyName.PAGE_DOWN); 18 Expect.equals("PageDown", KeyName.PAGE_DOWN);
19 Expect.equals("DeadIota", KeyName.DEAD_IOTA); 19 Expect.equals("DeadIota", KeyName.DEAD_IOTA);
20 }); 20 });
21 21
22 test('keyLocations', () { 22 test('keyLocations', () {
23 Expect.equals(0, KeyLocation.STANDARD); 23 Expect.equals(0, KeyLocation.STANDARD);
24 Expect.equals(1, KeyLocation.LEFT); 24 Expect.equals(1, KeyLocation.LEFT);
25 Expect.equals(2, KeyLocation.RIGHT); 25 Expect.equals(2, KeyLocation.RIGHT);
26 Expect.equals(3, KeyLocation.NUMPAD); 26 Expect.equals(3, KeyLocation.NUMPAD);
27 Expect.equals(4, KeyLocation.MOBILE); 27 Expect.equals(4, KeyLocation.MOBILE);
28 Expect.equals(5, KeyLocation.JOYSTICK); 28 Expect.equals(5, KeyLocation.JOYSTICK);
29 }); 29 });
30 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698