button-plugin-test.js revision cce186993be5ed0c9e9150be3d99afb0408676af
ArrayAssert = Y.ArrayAssert,
name: 'button plugin factory',
setUp : function () {
this.label = "Hello";
},
tearDown: function () {
},
'node.plug(Y.Plugin.Button, config) should return a Y.Node instance with Button functionality': function () {
var newLabel = 'World';
var button;
disabled: true
});
},
'Y.Plugin.Button.createNode(srcNode) should return a Y.Node instance with Button functionality': function () {
var newLabel = 'World';
var button;
},
'Y.Plugin.Button.createNode(srcNode, config) should return a Y.Node instance with Button functionality': function () {
var newLabel = 'World';
var button;
'label': newLabel,
'disabled': true
});
},
'Y.Plugin.Button.createNode(config) should return a Y.Node instance with Button functionality': function () {
var newLabel = 'World';
var button;
disabled: true
});
},
'Y.Plugin.Button.createNode(config) should return a Y.Node with the specified `template` element': function () {
Assert.areSame('#foo', anchorButton.getAttribute('href'), '`anchorButton` did not have href "#foo".');
}
}));
}, '@VERSION@', {
});