mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Calendar tests: Fix dateFormat option test
Do not use value option to pass in a string but value method.
This commit is contained in:
parent
4c2229fc51
commit
d9ee3a1ec4
@ -109,12 +109,11 @@ test( "buttons - advanced", function() {
|
|||||||
|
|
||||||
test( "dateFormat", function() {
|
test( "dateFormat", function() {
|
||||||
expect( 2 );
|
expect( 2 );
|
||||||
var element = $( "#calendar" ).calendar({
|
var element = $( "#calendar" ).calendar();
|
||||||
value: "1/1/14"
|
|
||||||
}),
|
|
||||||
firstDayLink = element.calendar( "widget" ).find( "td[id]:first button" );
|
|
||||||
|
|
||||||
firstDayLink.trigger( "mousedown" );
|
element.calendar( "value", "1/1/14" );
|
||||||
|
|
||||||
|
element.calendar( "widget" ).find( "td[id]:first button" ).trigger( "mousedown" );
|
||||||
equal( element.calendar( "value" ), "1/1/14", "default formatting" );
|
equal( element.calendar( "value" ), "1/1/14", "default formatting" );
|
||||||
|
|
||||||
element.calendar( "option", "dateFormat", { date: "full" } );
|
element.calendar( "option", "dateFormat", { date: "full" } );
|
||||||
|
Loading…
Reference in New Issue
Block a user