PHP Classes

File: public/assets/bower_components/bootstrap-datepicker/tests/suites/mouse_navigation/all.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Inventory Management System with Scanner   public/assets/bower_components/bootstrap-datepicker/tests/suites/mouse_navigation/all.js   Download  
File: public/assets/bower_components/bootstrap-datepicker/tests/suites/mouse_navigation/all.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change:
Date: 1 year ago
Size: 1,103 bytes
 

Contents

Class file image Download
module('Mouse 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('Clicking datepicker does not hide datepicker', function(){ ok(this.picker.is(':visible'), 'Picker is visible'); this.picker.trigger('mousedown'); ok(this.picker.is(':visible'), 'Picker is still visible'); }); test('Clicking 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('mousedown'); ok(this.picker.is(':not(:visible)'), 'Picker is hidden'); $otherelement.remove(); });