| OLD | NEW |
| 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 } |
| OLD | NEW |