change: function ( event, ui ) {
ok( event, "change event fired on change" );
equal( event.type, "selectmenuchange", "event type set to selectmenuchange" );
- equal( ui.item.element[ 0 ].nodeName, "OPTION", "ui.item.element[0] points to original option element" );
+ equal( ui.item.element[ 0 ].nodeName.toLowerCase(), "option", "ui.item.element[0] points to original option element" );
equal( ui.item.value, value, "ui.item.value property updated correctly" );
}
});
test( "focus", function () {
expect( 3 );
- var button,
- menu,
- links;
+ var button, menu, links;
this.element.selectmenu({
focus: function ( event, ui ) {
ok( event, "focus event fired on mouseover" );
equal( event.type, "selectmenufocus", "event type set to selectmenufocus" );
- equal( ui.item.element[0].nodeName, "OPTION", "ui points to original option element" );
+ equal( ui.item.element[0].nodeName.toLowerCase(), "option", "ui points to original option element" );
}
});
select: function ( event, ui ) {
ok( event, "select event fired on item select" );
equal( event.type, "selectmenuselect", "event type set to selectmenuselect" );
- equal( ui.item.element[0].nodeName, "OPTION", "ui points to original option element" );
+ equal( ui.item.element[0].nodeName.toLowerCase(), "option", "ui points to original option element" );
}
});