button-plugin-test.js revision 2eb35ccb37fe639723fe98fe220deb1044c78f49
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@', {
});