Sha256: 98948e46b0b81b4074870ae2f680337ded51b7cba17b19ccac014b45ebe38ee7
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
module('Touch Navigation (All)', { setup: function(){ this.input = $('<input type="text">') .appendTo('#qunit-fixture') .datepicker({format: "dd-mm-yyyy"}) .focus(); // Activate for visibility checks this.dp = this.input.data('datepicker'); this.picker = this.dp.picker; }, teardown: function(){ this.picker.remove(); } }); test('Tapping outside datepicker hides datepicker', function(){ var $otherelement = $('<div />'); $('body').append($otherelement); ok(this.picker.is(':visible'), 'Picker is visible'); this.input.trigger('click'); ok(this.picker.is(':visible'), 'Picker is still visible'); $otherelement.trigger('touchstart'); ok(this.picker.is(':not(:visible)'), 'Picker is hidden'); $otherelement.remove(); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jinda_lte-0.0.1 | lib/generators/jinda_lte/templates/app/assets/jinda_assets/bower_components/bootstrap-datepicker/tests/suites/touch_navigation/all.js |