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

Unified Diff: tests/html/key_name_location_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: tests/html/key_name_location_test.dart
===================================================================
--- tests/html/key_name_location_test.dart (revision 14156)
+++ tests/html/key_name_location_test.dart (working copy)
@@ -10,22 +10,22 @@
useHtmlConfiguration();
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);
+ 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.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);
+ expect(KeyLocation.STANDARD, 0);
+ expect(KeyLocation.LEFT, 1);
+ expect(KeyLocation.RIGHT, 2);
+ expect(KeyLocation.NUMPAD, 3);
+ expect(KeyLocation.MOBILE, 4);
+ expect(KeyLocation.JOYSTICK, 5);
});
}

Powered by Google App Engine
This is Rietveld 408576698