Skip to content

Commit e471b77

Browse files
author
Gabriel Schulhof
committed
Unit tests: Button: Checking for presence/absence of a hidden input is no longer relevant, since form submission is being handled without the addition of a hidden input.
1 parent ae3484b commit e471b77

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/unit/button/button_core.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,6 @@
3434
deepEqual( textValueButton.siblings().text(), "bar" );
3535
});
3636

37-
// Issue 2877
38-
test( "verify the button placeholder is added many times", function() {
39-
var $form = $( "#hidden-element-addition-form" ), count = 3;
40-
expect( count * 2 );
41-
42-
for( var x = 0; x < count; x++ ) {
43-
$( "#hidden-element-addition" ).trigger( "vclick" );
44-
deepEqual( $form.find( "input[type='hidden']" ).length, 1, "hidden form input should be added" );
45-
46-
$form.trigger( "submit" );
47-
deepEqual( $form.find( "[type='hidden']" ).length, 0, "hidden form input is removed" );
48-
}
49-
});
50-
5137
test( "theme should be inherited", function() {
5238
var $inherited = $( "#theme-check" ),
5339
$explicit = $( "#theme-check-explicit" );
@@ -64,4 +50,4 @@
6450
ok( $htmlval.parent().find(".ui-btn-text").text().length > 1, "If the text is pulled from a button’s value, anything HTML-like should be disregarded." );
6551
});
6652

67-
})( jQuery );
53+
})( jQuery );

0 commit comments

Comments
 (0)