button-core-test.js revision 7a6ad76d2e039a8cbf25b4a0babafef7bbd54c01
ArrayAssert = Y.ArrayAssert,
name: 'Attributes',
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;
});
},
}));
name: 'Instantiation',
setUp : function () {
},
tearDown: function () {
},
'Creating an unattached button should create a Y.ButtonCore instance': function () {
},
'Modifying the label of a nested button structure should not modify the non-label elements': function () {
Y.one("#container").setContent('<button id="testButton">**<span class="yui3-button-label">Hello</span>**</button>');
var button = new Y.ButtonCore({
});
},
'modifying the `label` attribute should work properly on <input> elements': function () {
var button = new Y.ButtonCore({
});
}
}));
}, '@VERSION@', {
});