Selectmenu Tests: remove unneeded test

This commit is contained in:
Felix Nagel 2013-04-29 20:48:48 +02:00
parent c73f7e81ad
commit 8b6c81e8a6

View File

@ -7,13 +7,12 @@ module( "selectmenu: events", {
}); });
test( "change", function () { test( "change", function () {
expect( 5 ); expect( 4 );
this.element.selectmenu({ this.element.selectmenu({
change: function ( event, ui ) { change: function ( event, ui ) {
ok( event, "change event fired on change" ); ok( event, "change event fired on change" );
equal( event.type, "selectmenuchange", "event type set to selectmenuchange" ); equal( event.type, "selectmenuchange", "event type set to selectmenuchange" );
ok(ui, "ui object is passed as second argument to event handler" );
equal( ui.item.element[ 0 ].nodeName, "OPTION", "ui.item.element[0] points to original option element" ); equal( ui.item.element[ 0 ].nodeName, "OPTION", "ui.item.element[0] points to original option element" );
equal( ui.item.value, value, "ui.item.value property updated correctly" ); equal( ui.item.value, value, "ui.item.value property updated correctly" );
} }