diff --git a/src/timepicker/test/timepicker.spec.js b/src/timepicker/test/timepicker.spec.js index 9ac300e66f..6cda1572a8 100644 --- a/src/timepicker/test/timepicker.spec.js +++ b/src/timepicker/test/timepicker.spec.js @@ -136,8 +136,13 @@ describe('timepicker directive', function () { expect(getTimeState()).toEqual(['02', '39', 'PM']); expect(getModelState()).toEqual([14, 39]); }); + + it('meridian button has correct type', function() { + var button = getMeridianButton(); + expect(button.attr('type')).toBe('button'); + }); - it('toggles meridian when arrows are clicked', function() { + it('toggles meridian when button is clicked', function() { var button = getMeridianButton(); doClick(button); diff --git a/template/timepicker/timepicker.html b/template/timepicker/timepicker.html index 60614b286d..bef8e27f19 100644 --- a/template/timepicker/timepicker.html +++ b/template/timepicker/timepicker.html @@ -14,7 +14,7 @@