button-group-test.js revision 73981adca3509c6bdee734dbea10717f9dd32556
ArrayAssert = Y.ArrayAssert,
// -- Suite --------------------------------------------------------------------
// -- Methods ----------------------------------------------------------------
name: 'Methods',
setUp : function () {
var buttons = [];
// Create a few buttons
for(var i=0; i < 5; i++) {
});
}
this.ButtonGroup = new Y.ButtonGroup({
type: 'checkbox'
});
},
tearDown: function () {
},
'ButtonGroup.getButtons() should return an array of Y.Buttons instances': function () {
var ButtonGroup = this.ButtonGroup;
},
'ButtonGroup.getSelectedButtons() should return accurate counts of selected buttons': function () {
var ButtonGroup = this.ButtonGroup;
// Ensure no buttons are selected
// Select specific buttons, and make sure the selected array jives
// Unselect
},
'ButtonGroup.getSelectedValues() should return values of selected buttons': function () {
var ButtonGroup = this.ButtonGroup;
// Ensure no buttons are selected
// Select some buttons and ensure the array of values matches
// Unselect
},
'ButtonGroup.addButton() should add an additional Y.Button instance to the array of buttons': function () {
var ButtonGroup = this.ButtonGroup;
// Create a new button
});
// Ensure no buttons are selected
// Add the button, and assert the new length
}
}));
}, '@VERSION@', {
});