button-core-test.js revision 156ebe6ddd4a3a96d89c11fd3a7a9944af91f3f7
ArrayAssert = Y.ArrayAssert,
name: 'button plugin factory',
setUp : function () {
this.button = new Y.ButtonCore({
});
},
tearDown: function () {
delete this.button;
},
'Disabling a button should set the `disable` attribute to `true`': function () {
},
'Enabling a button should set the `disabled` attribute to `false`': function () {
},
'Changing the label should change the `label` attribute of a button': function () {
var newText = 'foobar';
},
'Changing the label should change the `innerHTML` value of a button node': function () {
var newText = 'foobar';
},
'Changing the `disabled` attribute should fire a `disabledChange` event': function () {
var eventsTriggered = 0;
eventsTriggered+=1;
});
},
'Changing the `label` attribute should fire a `labelChange` event': function () {
var eventsTriggered = 0;
eventsTriggered+=1;
});
},
'Creating an unattached button should create a Y.ButtonCore instance': function () {
}
}));
}, '@VERSION@', {
});