PHP Classes

File: public/asset/vendor/datepicker/tests/suites/inline.js

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/datepicker/tests/suites/inline.js   Download  
File: public/asset/vendor/datepicker/tests/suites/inline.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 761 bytes
 

Contents

Class file image Download
module('Inline', { setup: function(){ this.component = $('<div data-date="12-02-2012"></div>') .appendTo('#qunit-fixture') .datepicker({format: "dd-mm-yyyy"}); this.dp = this.component.data('datepicker') this.picker = this.dp.picker; }, teardown: function(){ this.picker.remove(); } }); test('Picker gets date/viewDate from data-date attr', function(){ datesEqual(this.dp.date, UTCDate(2012, 1, 12)); datesEqual(this.dp.viewDate, UTCDate(2012, 1, 12)); }); test('Visible after init', function(){ ok(this.picker.is(':visible')); }); test('update', function(){ this.dp.update('13-03-2012') datesEqual(this.dp.date, UTCDate(2012, 2, 13)); });