Skip to content
Permalink
Browse files

Selectmenu Tests: remove unneeded test

  • Loading branch information...
fnagel committed Apr 29, 2013
1 parent 1fa8c20 commit f2bd23603d0f8811aaa0d736d2aa9c8225cf5455
Showing with 4 additions and 8 deletions.
  1. +4 −8 tests/unit/selectmenu/selectmenu_events.js
@@ -28,13 +28,12 @@ test( "change", function () {


test( "close", function () {
expect( 3 );
expect( 2 );

this.element.selectmenu({
close: function ( event, ui ) {
ok( event, "close event fired on close" );
equal( event.type, "selectmenuclose", "event type set to selectmenuclose" );
ok( ui, "ui object is passed as second argument to event handler" );
}
});

@@ -43,7 +42,7 @@ test( "close", function () {


test( "focus", function () {
expect( 4 );
expect( 3 );

var button,
menu,
@@ -53,7 +52,6 @@ test( "focus", function () {
focus: function ( event, ui ) {
ok( event, "focus event fired on mouseover" );
equal( event.type, "selectmenufocus", "event type set to selectmenufocus" );
ok( ui, "ui object is passed as second argument to event handler" );
equal( ui.item.element[0].nodeName, "OPTION", "ui points to original option element" );
}
});
@@ -73,13 +71,12 @@ test( "focus", function () {


test( "open", function () {
expect( 3 );
expect( 2 );

this.element.selectmenu({
open: function ( event, ui ) {
ok( event, "open event fired on open" );
equal( event.type, "selectmenuopen", "event type set to selectmenuopen" );
ok( ui, "ui object is passed as second argument to event handler" );
}
});

@@ -88,13 +85,12 @@ test( "open", function () {


test( "select", function () {
expect( 4 );
expect( 3 );

this.element.selectmenu({
select: function ( event, ui ) {
ok( event, "select event fired on item select" );
equal( event.type, "selectmenuselect", "event type set to selectmenuselect" );
ok( ui, "ui object is passed as second argument to event handler" );
equal( ui.item.element[0].nodeName, "OPTION", "ui points to original option element" );
}
});

0 comments on commit f2bd236

Please sign in to comment.
You can’t perform that action at this time.