Merge branch 'g-gray-master'
| | |
| | | }, |
| | | |
| | | renderMonth: function( props, month, year, selectedDate ) { |
| | | return DOM.td( props, this.props.viewDate.localeData()._monthsShort[ month ] ); |
| | | var monthsShort = this.props.viewDate.localeData()._monthsShort |
| | | return DOM.td( props, monthsShort.standalone |
| | | ? capitalize( monthsShort.standalone[ month ] ) |
| | | : monthsShort[ month ] |
| | | ) |
| | | } |
| | | }); |
| | | |
| | | function capitalize(str) { |
| | | return str.charAt(0).toUpperCase() + str.slice(1) |
| | | } |
| | | |
| | | module.exports = DateTimePickerMonths; |
| | |
| | | assert.notEqual( dt.hour().innerHTML, 2 ); |
| | | assert.notEqual( dt.hour().innerHTML, 3 ); |
| | | done(); |
| | | }, 700 ); |
| | | }, 920 ); |
| | | }); |
| | | |
| | | it( 'long decrease time', function( done ){ |
| | |
| | | assert.notEqual( dt.hour().innerHTML, 1 ); |
| | | assert.notEqual( dt.hour().innerHTML, 0 ); |
| | | done(); |
| | | }, 700 ); |
| | | }, 920 ); |
| | | }); |
| | | |
| | | it( 'invalid input value', function( done ){ |