button-test.js revision 7a6ad76d2e039a8cbf25b4a0babafef7bbd54c01
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass// -- Suite --------------------------------------------------------------------
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass// -- Widget ----------------------------------------------------------------
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass setUp : function () {
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass Y.one("#container").setContent('<button id="testButton">Hello</button><button id="testToggleButton">Hello</button><button id="testCheckButton">Hello</button>');
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass tearDown: function () {
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass delete this.button;
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass 'Changing the label atrribute should trigger labelChange': function () {
4eeb28ea335313c708fe2730312f94978b07dd04Dav Glass 'ToggleButton should have `toggle` role': function () {
setUp : function () {
tearDown: function () {
'Passing `pressed=true` in with the config will default the button to a `pressed` state': function() {
pressed: true
'Passing `checked=true` in with the config will default the button to a `checked` state': function() {
checked: true,