Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Unit tests: Button: Checking for presence/absence of a hidden input i…

…s no longer relevant, since form submission is being handled without the addition of a hidden input.
  • Loading branch information...
commit e471b77294460bc176decdf33e09b58640a787df 1 parent ae3484b
@gabrielschulhof gabrielschulhof authored
Showing with 1 addition and 15 deletions.
  1. +1 −15 tests/unit/button/button_core.js
View
16 tests/unit/button/button_core.js
@@ -34,20 +34,6 @@
deepEqual( textValueButton.siblings().text(), "bar" );
});
- // Issue 2877
- test( "verify the button placeholder is added many times", function() {
- var $form = $( "#hidden-element-addition-form" ), count = 3;
- expect( count * 2 );
-
- for( var x = 0; x < count; x++ ) {
- $( "#hidden-element-addition" ).trigger( "vclick" );
- deepEqual( $form.find( "input[type='hidden']" ).length, 1, "hidden form input should be added" );
-
- $form.trigger( "submit" );
- deepEqual( $form.find( "[type='hidden']" ).length, 0, "hidden form input is removed" );
- }
- });
-
test( "theme should be inherited", function() {
var $inherited = $( "#theme-check" ),
$explicit = $( "#theme-check-explicit" );
@@ -64,4 +50,4 @@
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." );
});
-})( jQuery );
+})( jQuery );
Please sign in to comment.
Something went wrong with that request. Please try again.