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

Unified Diff: client/tests/client/dom/KeyNameLocationTest.dart

Issue 9314008: Migrate all LayoutTests/dart/dom to main repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update config file Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/dom/IsolatesTest.dart ('k') | client/tests/client/dom/PerformanceApiTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/KeyNameLocationTest.dart
diff --git a/client/tests/client/dom/KeyNameLocationTest.dart b/client/tests/client/dom/KeyNameLocationTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8b2dcad66684ad8de5fe5d801679b21915f31328
--- /dev/null
+++ b/client/tests/client/dom/KeyNameLocationTest.dart
@@ -0,0 +1,30 @@
+#library('KeyNameLocationTest');
+#import('../../../testing/unittest/unittest.dart');
+#import('dart:dom');
+
+// Test for existence of some KeyName and KeyLocation constants.
+
+main() {
+
+ forLayoutTests();
+
+ test('keyNames', () {
+ Expect.equals("DownLeft", KeyName.DOWN_LEFT);
+ Expect.equals("Fn", KeyName.FN);
+ Expect.equals("F1", KeyName.F1);
+ Expect.equals("Meta", KeyName.META);
+ Expect.equals("MediaNextTrack", KeyName.MEDIA_NEXT_TRACK);
+ Expect.equals("NumLock", KeyName.NUM_LOCK);
+ Expect.equals("PageDown", KeyName.PAGE_DOWN);
+ Expect.equals("DeadIota", KeyName.DEAD_IOTA);
+ });
+
+ test('keyLocations', () {
+ Expect.equals(0, KeyLocation.STANDARD);
+ Expect.equals(1, KeyLocation.LEFT);
+ Expect.equals(2, KeyLocation.RIGHT);
+ Expect.equals(3, KeyLocation.NUMPAD);
+ Expect.equals(4, KeyLocation.MOBILE);
+ Expect.equals(5, KeyLocation.JOYSTICK);
+ });
+}
« no previous file with comments | « client/tests/client/dom/IsolatesTest.dart ('k') | client/tests/client/dom/PerformanceApiTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698