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

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

Issue 10836241: Move unittest from lib to pkg. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « tests/html/js_interop_4_test.dart ('k') | tests/html/localstorage_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('KeyNameLocationTest'); 1 #library('KeyNameLocationTest');
2 #import('../../lib/unittest/unittest.dart'); 2 #import('../../pkg/unittest/unittest.dart');
3 #import('../../lib/unittest/html_config.dart'); 3 #import('../../pkg/unittest/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 // Test for existence of some KeyName and KeyLocation constants. 6 // Test for existence of some KeyName and KeyLocation constants.
7 7
8 main() { 8 main() {
9 9
10 useHtmlConfiguration(); 10 useHtmlConfiguration();
11 11
12 test('keyNames', () { 12 test('keyNames', () {
13 Expect.equals("DownLeft", KeyName.DOWN_LEFT); 13 Expect.equals("DownLeft", KeyName.DOWN_LEFT);
14 Expect.equals("Fn", KeyName.FN); 14 Expect.equals("Fn", KeyName.FN);
15 Expect.equals("F1", KeyName.F1); 15 Expect.equals("F1", KeyName.F1);
16 Expect.equals("Meta", KeyName.META); 16 Expect.equals("Meta", KeyName.META);
17 Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK); 17 Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK);
18 Expect.equals("NumLock", KeyName.NUM_LOCK); 18 Expect.equals("NumLock", KeyName.NUM_LOCK);
19 Expect.equals("PageDown", KeyName.PAGE_DOWN); 19 Expect.equals("PageDown", KeyName.PAGE_DOWN);
20 Expect.equals("DeadIota", KeyName.DEAD_IOTA); 20 Expect.equals("DeadIota", KeyName.DEAD_IOTA);
21 }); 21 });
22 22
23 test('keyLocations', () { 23 test('keyLocations', () {
24 Expect.equals(0, KeyLocation.STANDARD); 24 Expect.equals(0, KeyLocation.STANDARD);
25 Expect.equals(1, KeyLocation.LEFT); 25 Expect.equals(1, KeyLocation.LEFT);
26 Expect.equals(2, KeyLocation.RIGHT); 26 Expect.equals(2, KeyLocation.RIGHT);
27 Expect.equals(3, KeyLocation.NUMPAD); 27 Expect.equals(3, KeyLocation.NUMPAD);
28 Expect.equals(4, KeyLocation.MOBILE); 28 Expect.equals(4, KeyLocation.MOBILE);
29 Expect.equals(5, KeyLocation.JOYSTICK); 29 Expect.equals(5, KeyLocation.JOYSTICK);
30 }); 30 });
31 } 31 }
OLDNEW
« no previous file with comments | « tests/html/js_interop_4_test.dart ('k') | tests/html/localstorage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698