OLD | NEW |
| (Empty) |
1 #import('../../../../../dart/client/testing/unittest/unittest.dart'); | |
2 #import('dart:dom'); | |
3 | |
4 // Test for existence of some KeyName and KeyLocation constants. | |
5 | |
6 main() { | |
7 | |
8 forLayoutTests(); | |
9 | |
10 test('keyNames', () { | |
11 Expect.equals("DownLeft", KeyName.DOWN_LEFT); | |
12 Expect.equals("Fn", KeyName.FN); | |
13 Expect.equals("F1", KeyName.F1); | |
14 Expect.equals("Meta", KeyName.META); | |
15 Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK); | |
16 Expect.equals("NumLock", KeyName.NUM_LOCK); | |
17 Expect.equals("PageDown", KeyName.PAGE_DOWN); | |
18 Expect.equals("DeadIota", KeyName.DEAD_IOTA); | |
19 }); | |
20 | |
21 test('keyLocations', () { | |
22 Expect.equals(0, KeyLocation.STANDARD); | |
23 Expect.equals(1, KeyLocation.LEFT); | |
24 Expect.equals(2, KeyLocation.RIGHT); | |
25 Expect.equals(3, KeyLocation.NUMPAD); | |
26 Expect.equals(4, KeyLocation.MOBILE); | |
27 Expect.equals(5, KeyLocation.JOYSTICK); | |
28 }); | |
29 } | |
OLD | NEW |