button-test.js revision 2d271216b75521cdb6cade5932b974906e92c0bb
ArrayAssert = Y.ArrayAssert,
// -- Suite --------------------------------------------------------------------
// -- Methods ----------------------------------------------------------------
name: 'Methods',
setUp : function () {
srcNode : '#test',
type : 'toggle'
});
},
tearDown: function () {
},
'button.getDOMNode() should return a Y.Node instance': function () {
},
'button.onClick() should make `selected` attribute = true and `yui3-button-selected` class': function () {
}
}));
// -- Rendering ----------------------------------------------------------------
name: 'Render',
setUp : function () {
srcNode : '#test'
});
},
tearDown: function () {
},
'button should have `yui3-button` class': function () {
},
'button should have `button` role': function () {
},
'button mouse events should toggle aria-pressed attributes': function () {
},
}
}));
// -- Attributes ----------------------------------------------------------------
name: 'Attributes',
setUp : function () {
srcNode : '#test'
});
},
tearDown: function () {
},
'setting label attribute should set innerHTML': function () {
var label;
label = 'foobar';
label = 'fizzbuzz';
},
'setting disabled=`true` attribute should add class `yui3-button-disabled`': function () {
// Ensure button is enabled by default
// Disable button
// Ensure button is enabled by default
},
'setting disabled=`false` attribute should remove class `yui3-button-disabled`': function () {
// Disable button
// Ensure button is disabled
// Disable button
// Ensure button is enabled
},
'setting type=`toggle` attribute should make button toggle-able': function () {
// Ensure button is unselected by default
// Ensure it is a push button
// Click and check selected state (false)
// Click and check selected state (false)
// Set to toggle
// Click and check selected state (true)
// Click and check selected state (false)
// Set back to type='push'
// Click and check selected state (false)
// Click and check selected state (false)
}
}));
}, '@VERSION@', {
});