Permalink
Browse files

ensure hour is highlighted first

  • Loading branch information...
1 parent 004130b commit 59a40d715be8578fc2c23177168b4a06d4ac2293 @jdewit committed Feb 1, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/js/KeyboardEventsSpec.js
@@ -51,7 +51,11 @@ describe('Keyboard events feature', function() {
tp1.setTime('11:30 AM');
tp1.update();
- $input1.focus();
+ $input1.trigger('focus');
+
+ if (tp1.highlightedUnit !== 'hour') {
+ tp1.highlightHour();
+ }
expect(tp1.highlightedUnit).toBe('hour', 'hour should be highlighted by default');
// hours

0 comments on commit 59a40d7

Please sign in to comment.