981c4b11df
This means all imports of unittest in our test code had to change to include 'lib' in the path. While doing that change I changed the library/imports to the new syntax in the affected files. Review URL: https://codereview.chromium.org//11301046 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
32 lines
876 B
Dart
32 lines
876 B
Dart
library KeyNameLocationTest;
|
|
import '../../pkg/unittest/lib/unittest.dart';
|
|
import '../../pkg/unittest/lib/html_config.dart';
|
|
import 'dart:html';
|
|
|
|
// Test for existence of some KeyName and KeyLocation constants.
|
|
|
|
main() {
|
|
|
|
useHtmlConfiguration();
|
|
|
|
test('keyNames', () {
|
|
expect(KeyName.DOWN_LEFT, "DownLeft");
|
|
expect(KeyName.FN, "Fn");
|
|
expect(KeyName.F1, "F1");
|
|
expect(KeyName.META, "Meta");
|
|
expect(KeyName.MEDIA_NEXT_TRACK, "MediaNextTrack");
|
|
expect(KeyName.NUM_LOCK, "NumLock");
|
|
expect(KeyName.PAGE_DOWN, "PageDown");
|
|
expect(KeyName.DEAD_IOTA, "DeadIota");
|
|
});
|
|
|
|
test('keyLocations', () {
|
|
expect(KeyLocation.STANDARD, 0);
|
|
expect(KeyLocation.LEFT, 1);
|
|
expect(KeyLocation.RIGHT, 2);
|
|
expect(KeyLocation.NUMPAD, 3);
|
|
expect(KeyLocation.MOBILE, 4);
|
|
expect(KeyLocation.JOYSTICK, 5);
|
|
});
|
|
}
|