Skip to content

Commit

Permalink
merging, checking if regression still fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Santos committed May 22, 2015
1 parent 9c9286c commit b5af463
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/unit/Ink.UI.DatePicker_1/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ test('onSetDate', function () {
ok(onSetDate.calledOnce, 'onSetDate called when the user clicks an element which chooses a date');
})

test('regression: onSetDate called on click', function () {
var onSetDate = sinon.spy();
var dt = mkDatePicker({ onSetDate: onSetDate });

dt.show()

InkEvent.fire(
Ink.s('[data-cal-day="6"]', dt._containerObject),
'click')

ok(onSetDate.calledOnce)
})

test('i18n', function () {
var i18n = new I18n({
tt_TT: { // Test lang
Expand Down

0 comments on commit b5af463

Please sign in to comment.