@@ -392,7 +392,7 @@ QUnit.test('Test invalid day', function (assert) {
392392 util . paste ( $dtEditor . igDateEditor ( "field" ) [ 0 ] , "32/04/2015" ) ;
393393 $dtEditor . trigger ( "blur" ) ;
394394
395- assert . equal ( new Date ( $dtEditor . igDateEditor ( "value" ) ) . getTime ( ) , new Date ( 2015 , 03 , 30 ) . getTime ( ) , 'The initial value is not as expected' ) ;
395+ assert . equal ( new Date ( $dtEditor . igDateEditor ( "value" ) ) . getTime ( ) , new Date ( 2015 , 3 , 30 ) . getTime ( ) , 'The initial value is not as expected' ) ;
396396 assert . equal ( $dtEditor . igDateEditor ( "displayValue" ) , "30/04/2015" , 'The initial value is not as expected' ) ;
397397 done ( ) ;
398398 } ) . catch ( function ( er ) {
@@ -447,7 +447,7 @@ QUnit.test('Test invalid hour', function (assert) {
447447 $dtEditor . trigger ( "blur" ) ;
448448 value = $dtEditor . igDateEditor ( "value" ) ;
449449 value = new Date ( value . getFullYear ( ) , value . getMonth ( ) , value . getDate ( ) , value . getHours ( ) , value . getMinutes ( ) , value . getSeconds ( ) ) ;
450- expectedValue = new Date ( new Date ( ) . getFullYear ( ) , new Date ( ) . getMonth ( ) , new Date ( ) . getDate ( ) , 3 , 00 , 29 ) ;
450+ expectedValue = new Date ( new Date ( ) . getFullYear ( ) , new Date ( ) . getMonth ( ) , new Date ( ) . getDate ( ) , 3 , 0 , 29 ) ;
451451 // use setDate to add a day, otherwise date won't increase correctly
452452 expectedValue . setDate ( expectedValue . getDate ( ) + 1 ) ;
453453 assert . equal ( value . getTime ( ) , expectedValue . getTime ( ) , 'The initial value is not as expected' ) ;
@@ -532,7 +532,7 @@ QUnit.test('Testing time with spin buttons and cursor position at hours', functi
532532 spinUpButton ,
533533 util = this . util ;
534534
535- $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 01 , 20 ) ) ;
535+ $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 1 , 20 ) ) ;
536536 $dtEditor . igDateEditor ( "setFocus" ) ;
537537
538538 this . util . wait ( 100 ) . then ( function ( ) {
@@ -571,7 +571,7 @@ QUnit.test('Testing time with spin buttons and cursor position at minutes', func
571571 spinUpButton ,
572572 util = this . util ;
573573
574- $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 01 , 20 ) ) ;
574+ $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 1 , 20 ) ) ;
575575 $dtEditor . igDateEditor ( "setFocus" ) ;
576576
577577 this . util . wait ( 100 ) . then ( function ( ) {
@@ -609,7 +609,7 @@ QUnit.test('Testing time with spin buttons and cursor position at seconds', func
609609 spinUpButton ,
610610 util = this . util ;
611611
612- $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 01 , 20 ) ) ;
612+ $dtEditor . igDateEditor ( "value" , new Date ( today . getFullYear ( ) , today . getMonth ( ) , today . getDate ( ) , 22 , 1 , 20 ) ) ;
613613 $dtEditor . igDateEditor ( "setFocus" ) ;
614614
615615 this . util . wait ( 100 ) . then ( function ( ) {
@@ -4389,7 +4389,7 @@ QUnit.test('Spin boundary values and update date object parts that are missing i
43894389QUnit . test ( 'Test invalid composition value' , function ( assert ) {
43904390 assert . expect ( 3 ) ;
43914391 var $dtEditor = this . util . appendToFixture ( this . inputTag ) . igDateEditor ( {
4392- value : new Date ( 2015 , 04 , 01 )
4392+ value : new Date ( 2015 , 4 , 1 )
43934393 } ) ,
43944394 $field = $dtEditor . igDateEditor ( "field" ) ,
43954395 done = assert . async ( ) ,
@@ -4411,7 +4411,7 @@ QUnit.test('Test invalid composition value', function (assert) {
44114411 assert . equal ( $field . val ( ) , "05/01/2015" , "Text should remain on invalid composition value." ) ;
44124412 assert . ok ( $field [ 0 ] . selectionStart === 0 && $field [ 0 ] . selectionEnd === 10 , "Entire value should be selected." ) ;
44134413 $field . blur ( ) ;
4414- assert . equal ( $dtEditor . igDateEditor ( "value" ) && $dtEditor . igDateEditor ( "value" ) . getTime ( ) , new Date ( 2015 , 04 , 01 ) . getTime ( ) , "value did not stay the same" ) ;
4414+ assert . equal ( $dtEditor . igDateEditor ( "value" ) && $dtEditor . igDateEditor ( "value" ) . getTime ( ) , new Date ( 2015 , 4 , 1 ) . getTime ( ) , "value did not stay the same" ) ;
44154415
44164416 done ( ) ;
44174417 } ) . catch ( function ( er ) {
@@ -4463,7 +4463,7 @@ QUnit.test('Testing spin minutes in 12 hours format', function (assert) {
44634463 $dtEditor . data ( "igDateEditor" ) . _setCursorPosition ( 12 ) ;
44644464 util . click ( spinUpButton , false , false ) ;
44654465 $dtEditor . trigger ( "blur" ) ;
4466- expectedValue = new Date ( 2017 , 11 , 9 , 1 , 00 ) ;
4466+ expectedValue = new Date ( 2017 , 11 , 9 , 1 , 0 ) ;
44674467 value = $dtEditor . igDateEditor ( "value" ) ;
44684468 assert . equal ( value . getTime ( ) , expectedValue . getTime ( ) , 'The initial value is not as expected' ) ;
44694469 assert . equal ( $dtEditor . igDateEditor ( "displayValue" ) , "12/9/2017 1:00 AM" , 'The initial value is not as expected' ) ;
0 commit comments