aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/button/button_events.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-11-19 08:37:41 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-19 08:37:41 -0500
commitcc7df712cc4ca90f6d6db599c5ff91b690921581 (patch)
tree5cb37de0e5e6aac4163a543fc0fb6253ac82c42e /tests/unit/button/button_events.js
parent4334b5d4f1113ef751cb6738d8b2a60467a700e4 (diff)
downloadjquery-ui-cc7df712cc4ca90f6d6db599c5ff91b690921581.tar.gz
jquery-ui-cc7df712cc4ca90f6d6db599c5ff91b690921581.zip
Button: properly escape button names. Fixes #7505 - Button: Buttonset not applied to radio group with quotation/apostrophe in name.
Diffstat (limited to 'tests/unit/button/button_events.js')
-rw-r--r--tests/unit/button/button_events.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/button/button_events.js b/tests/unit/button/button_events.js
index 40d2a1a96..ad83101d0 100644
--- a/tests/unit/button/button_events.js
+++ b/tests/unit/button/button_events.js
@@ -1,8 +1,16 @@
/*
* button_events.js
*/
-(function() {
+(function($) {
module("button: events");
+test("buttonset works with single-quote named elements (#7505)", function() {
+ expect( 1 );
+ $("#radio3").buttonset();
+ $("#radio33").click( function(){
+ ok( true, "button clicks work with single-quote named elements" );
+ }).click();
+});
+
})(jQuery);