r3616 committed - button: test for buttonset

r3616 committed - button: test for buttonset

Revision: 3616
Author: joern.zaefferer
Date: Tue Jan 5 07:32:10 2010
Log: button: test for buttonset
http://code.google.com/p/jquery-ui/source/detail?r=3616
Modified:
/branches/dev/tests/unit/button/button_core.js
=======================================
--- /branches/dev/tests/unit/button/button_core.js    Tue Jan 5 07:25:05 2010
/branches/dev/tests/unit/button/button_core.js    Tue Jan 5 07:32:10 2010
@@ -57,4
57,14 @@
    same
input.children
.length, 0
;
}
;
test
"buttonset", function
{
    var set = $
"#radio1"
.buttonset
;
    ok
set.is
".ui-button-set"

;
    same
set.children
".ui-button"
.length, 3
;
    same
set.children
"input:radio:hidden"
.length, 3
;
    ok

set.children
"label:eq
0
"
.is
".ui-button.ui-corner-left:not
.ui-corner-all
"

;
    ok
set.children
"label:eq
1
"
.is
".ui-button:not
.ui-corner-all
"

;
    ok

set.children
"label:eq
2
"
.is
".ui-button.ui-corner-right:not
.ui-corner-all
"

;
}
;
}
jQuery
;
--