![JAR search and dependency download from the Maven repository](/logo.png)
web.bower_components.bootstrap-datepicker.tests.suites.keyboard_navigation.all.js Maven / Gradle / Ivy
The newest version!
module('Keyboard Navigation (All)', {
setup: function(){
this.input = $('')
.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('TAB hides picker', function(){
var target;
ok(this.picker.is(':visible'), 'Picker is visible');
this.input.trigger({
type: 'keydown',
keyCode: 9
});
ok(this.picker.is(':not(:visible)'), 'Picker is hidden');
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy