mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
cleaned up test to limit event binding bleed
This commit is contained in:
parent
6354bd4260
commit
76d8d3825a
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue