Lines Matching refs:label
49 'Changing the label should change the `label` attribute of a button': function () {
51 var defaultText = Y.ButtonCore.ATTRS.label.value;
54 button.set('label', newText);
55 Assert.areEqual(newText, button.get('label'));
58 'Changing the label should change the `innerHTML` value of a button node': function () {
61 var defaultText = Y.ButtonCore.ATTRS.label.value;
64 button.set('label', newText);
85 'Changing the `label` attribute should fire a `labelChange` event': function () {
96 button.set('label', 'something');
98 button.set('label', 'somethingElse');
115 var button = new Y.ButtonCore({label:'foo'});
116 Assert.areEqual(button.get('label'), 'foo');
120 'Modifying the label of a nested button structure should not modify the non-label elements': function () {
121 Y.one("#container").setContent('<button id="testButton">**<span class="yui3-button-label">Hello</span>**</button>');
128 button.set('label', button.get('label') + ' World');
129 Assert.areEqual(button.get('label'), 'Hello World');
133 'modifying the `label` attribute should work properly on <input> elements': function () {
139 Assert.areEqual(button.get('label'), 'foo');
140 button.set('label', 'bar');
141 Assert.areEqual(button.get('label'), 'bar');