cleaned up test to limit event binding bleed

This commit is contained in:
John Bender 2011-10-18 16:33:42 -07:00
parent 6354bd4260
commit 76d8d3825a

View file

@ -51,16 +51,16 @@
$checkbox.unbind( "change" );
expect( 2 );
expect( 1 );
$checkbox.change(function(){
$checkbox.one('change', function(){
ok( true, "change fired on click to check the box" );
});
$checkboxLabel.trigger( "click" );
//test above will be triggered twice, and the start here once
$checkbox.change( function(){
$checkbox.one('change', function(){
start();
});
@ -119,7 +119,6 @@
// not testing the positive case here since's it's obviously tested elsewhere
test( "checkboxradio elements in the keepNative set shouldn't be enhanced", function() {
console.log( );
ok( !$("input.should-be-native").parent().is("div.ui-checkbox") );
});
})(jQuery);