Lines Matching refs:areSame

72         Assert.areSame(1, called);
93 Assert.areSame(fooButton, this.widget.getButton('foo'), 'Button in markup was not used.');
128 Assert.areSame(fooButton, this.widget.getButton('foo'), 'Button in markup was not used.');
129 Assert.areSame('Foo', fooButton.get('text'), 'Foo button had its text changed.');
133 Assert.areSame(1, called, 'onFoo default action was not called.');
159 Assert.areSame(Y.one('#test button'), this.widget.getButton('bar'), 'Bar button is rendered.');
160 Assert.areSame(1, this.widget.get('buttons.header').length, 'Header contained more than 1 button.');
229 Assert.areSame(2, this.widget.get('buttons.header').length, '`buttons.header` did not have 2 buttons.');
241 Assert.areSame(2, this.widget.get('buttons.footer').length, '`buttons.footer` did not have 2 buttons.');
254 Assert.areSame(2, buttons.length, '`buttons.footer` did not have 2 buttons.');
255 Assert.areSame('foo', buttons[0].get('text'), 'First button did not have the test "foo".');
256 Assert.areSame('bar', buttons[1].get('text'), 'Second button did not have the test "bar".');
294 Assert.areSame(foo, buttons.header[0], '`foo` was not the first header button.');
295 Assert.areSame(bar, buttons.body[0], '`bar` was not the first body button.');
296 Assert.areSame(baz, buttons.footer[0], '`baz` was no the first footer button.');
305 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Did not have 1 footer button.');
306 Assert.areSame(1, Y.all('#test button').size(), 'More than one button in the Widget.');
310 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Did not have 1 footer button.');
311 Assert.areSame(1, Y.all('#test button').size(), 'More than one button in the Widget.');
312 Assert.areSame('Bar', this.widget.getButton('foo').get('text'), '`foo` button did not have the label "Bar".');
321 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Did not have 1 footer button.');
322 Assert.areSame(1, Y.all('#test button').size(), 'More than one button in the Widget.');
326 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Did not have 1 footer button.');
327 Assert.areSame(1, Y.all('#test button').size(), 'More than one button in the Widget.');
328 Assert.areSame('Foo', this.widget.getButton('foo').get('text'), 'Foo button was not rendered.');
394 Assert.areSame('Close', widget2.get('buttons.header')[0].get('text'), '`widget2` does not have a "close" button in header.');
397 Assert.areSame(1, clicked);
423 Assert.areSame(2, buttons.size(), 'Widget did not have 2 buttons.');
425 Assert.areSame(buttons.item(1), this.widget.getButton('foo'), 'First button is not `foo`.');
426 Assert.areSame('Bar', this.widget.getButton('foo').get('text'), '`foo` button does not have text "Foo".');
442 Assert.areSame(1, called, '`action` was not called.');
450 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
461 Assert.areSame(2, this.widget.get('buttons.footer').length, 'Widget did not have 2 footer buttons.');
462 Assert.areSame(this.widget.getButton('bar'), this.widget.get('defaultButton'), '`bar` is not the `defaultButton`.');
482 Assert.areSame(9, this.widget.get('buttons.footer').length, 'Widget did not have 9 footer buttons.');
483 Assert.areSame(this.widget.getButton('zee'), this.widget.get('defaultButton'), '`zee` is not the `defaultButton`.');
500 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
504 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
505 Assert.areSame(0, called, '`defaultButtonChange` was called.');
519 Assert.areSame(null, this.widget.get('defaultButton'), '`defaultButton` was not null.');
526 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
527 Assert.areSame(1, called, '`defaultButtonChange` was not called.');
543 Assert.areSame(null, this.widget.get('defaultButton'), '`defaultButton` was not null.');
550 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
552 Assert.areSame(1, called, '`defaultButtonChange` was not called.');
571 Assert.areSame(this.widget.getButton('foo'), this.widget.get('defaultButton'), '`foo` is not the `defaultButton`.');
575 Assert.areSame(null, this.widget.get('defaultButton'), '`defaultButton` was not null.');
576 Assert.areSame(1, called, '`defaultButtonChange` was not called.');
596 Assert.areSame(0, this.widget.get('contentBox').all('.yui3-button').size(), 'Widget has button in header.');
606 Assert.areSame(1, this.widget.get('buttons.header').length, 'Widget does not have 1 button config in header.');
607 Assert.areSame(1, this.widget.getStdModNode('header').all('.yui3-button').size(), 'Widget does not have 1 button in header.');
612 Assert.areSame('Foo', newButton.get('text'), '`newButton` text was not "Foo".');
613 Assert.areSame(1, called, '`newButton` action was not called.');
623 Assert.areSame(1, this.widget.get('buttons').footer.length, 'Widget does not have 1 button config in header.');
624 Assert.areSame(1, this.widget.getStdModNode('footer').all('.yui3-button').size(), 'Widget does not have 1 button in footer.');
629 Assert.areSame('Bar', newButton.get('text'), '`newButton` text was not "Bar".');
630 Assert.areSame(2, called, '`newButton` action was not called.');
640 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Footer did not have only 1 button.');
644 Assert.areSame(2, this.widget.get('buttons.footer').length, 'Footer did not have only 2 buttons.');
645 Assert.areSame('Bar', this.widget.get('buttons.footer')[1].get('text'), 'Last footer button was not "Bar".');
655 Assert.areSame(1, this.widget.get('buttons.header').length, 'Header did not have only 1 button.');
659 Assert.areSame(2, this.widget.get('buttons.header').length, 'Header did not have only 2 buttons.');
660 Assert.areSame('Bar', this.widget.get('buttons.header')[1].get('text'), 'Last header button was not "Bar".');
670 Assert.areSame(1, this.widget.get('buttons.header').length, 'Header did not have only 1 button.');
674 Assert.areSame(2, this.widget.get('buttons.header').length, 'Header did not have only 2 buttons.');
675 Assert.areSame('Bar', this.widget.get('buttons.header')[0].get('text'), 'Last header button was not "Bar".');
690 Assert.areSame(button, this.widget.getButton('foo'), '`foo` button was not retrievable by name.');
702 Assert.areSame('Foo2', this.widget.getButton('foo').get('label'), 'Foo2 was not the main `foo` button.');
704 Assert.areSame('Foo2', this.widget.getButton('foo', 'footer').get('label'), 'Foo2 was not the `foo` footer button.');
705 Assert.areSame('Foo1', this.widget.getButton('foo', 'header').get('label'), 'Foo1 was not the `foo` header button.');
725 Assert.areSame(fooButton, this.widget.getButton(0, 'header'), '`fooButton` was not the first header button.');
726 Assert.areSame(barButton, this.widget.getButton(0, 'footer'), '`barButton` was not the first footer button.');
727 Assert.areSame(barButton, this.widget.getButton(0), '`getButton()` does not default to the footer section.');
737 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'Widget did not have 1 rendered button.');
742 Assert.areSame(0, this.widget.get('contentBox').all('.yui3-button').size(), 'Widget had a rendered button.');
774 Assert.areSame(2, this.widget.get('buttons.footer').length, 'Footer did not have only 2 button.');
778 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Footer did not have only 1 buttons.');
779 Assert.areSame('Bar', this.widget.get('buttons.footer')[0].get('text'), 'The only footer button was not "Bar".');
792 Assert.areSame(2, this.widget.get('buttons.header').length, 'Header did not have only 2 button.');
796 Assert.areSame(1, this.widget.get('buttons.header').length, 'Header did not have only 1 buttons.');
797 Assert.areSame('Bar', this.widget.get('buttons.header')[0].get('text'), 'The only header button was not "Bar".');
830 Assert.areSame('Foo', button.get('text'), '`button` text is not "Foo".');
847 Assert.areSame('Foo', button.get('text'), '`button` text is not "Foo".');
870 Assert.areSame('Foo', headerButton.get('text'), '`headerButton` text is not "Foo".');
871 Assert.areSame('Bar', footerBotton.get('text'), '`footerButton` text is not "Bar".');
891 Assert.areSame(fooButton, headerButtons.get('firstChild'), '`foo` button is not the first header button.');
908 Assert.areSame(barButton, headerButtons.get('firstChild'), '`bar` button is the first header button.');
937 Assert.areSame(1, visibleCalled, '`visibleChange` was not called only 1 time.');
938 Assert.areSame(1, focusCalled, '`focus` was not called only 1 time.');
947 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-widget-ft .yui3-button').size(), 'Footer does not contain 1 button.');
951 Assert.areSame('Bar', this.widget.get('contentBox').one('.yui3-widget-ft p').get('text'), 'New footer content was not added.');
952 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-widget-ft .yui3-button').size(), 'Footer does not contain 1 button.');
953 Assert.areSame('Foo', this.widget.getButton(0).get('label'), 'Button did not have the label "Foo".');
991 Assert.areSame(1, called, '`buttonsChange` did not fire.');
996 Assert.areSame(1, this.widget.get('buttons.header').length, 'Widget header did not have a button.');
1013 Assert.areSame('add', e.src, '`buttonsChange src was not "add".');
1026 Assert.areSame(1, called, '`buttonsChange` did not fire.');
1027 Assert.areSame(button, this.widget.getStdModNode('footer').one('.yui3-button'), 'Footer button was re-created.');
1028 Assert.areSame(1, this.widget.get('buttons.header').length, 'Widget header did not have a button.');
1045 Assert.areSame('remove', e.src, '`buttonsChange src was not "remove".');
1055 Assert.areSame(1, called, '`buttonsChange` did not fire.');
1086 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was not rendered.');
1091 Assert.areSame(buttons.footer[0], this.widget.get('buttons.footer')[0], '`buttons` changed.');
1092 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was removed.');
1094 Assert.areSame(1, onCalled);
1095 Assert.areSame(0, afterCalled);
1124 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was not rendered.');
1128 Assert.areSame(1, this.widget.get('buttons.footer').length, 'Footer buttons does not only have 1 button.');
1129 Assert.areSame(buttons.footer[0], this.widget.get('buttons.footer')[0], '`buttons` changed.');
1130 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was removed.');
1132 Assert.areSame(1, onCalled);
1133 Assert.areSame(0, afterCalled);
1165 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was not rendered.');
1169 Assert.areSame(2, this.widget.get('buttons.footer').length, 'Footer buttons does not only have 2 buttons.');
1170 Assert.areSame(buttons.footer[0], this.widget.get('buttons.footer')[0], '`buttons` changed.');
1171 Assert.areSame('Foo', this.widget.get('contentBox').one('.yui3-button').get('text'), 'Foo button was removed.');
1173 Assert.areSame(1, onCalled);
1174 Assert.areSame(0, afterCalled);
1189 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1190 Assert.areSame('Foo', this.widget.get('contentBox').all('.yui3-button').item(0).get('label'), 'The button was not labeled: "Foo".');
1194 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1195 Assert.areSame('Bar', this.widget.get('contentBox').all('.yui3-button').item(0).get('label'), 'The button was not labeled: "Bar".');
1196 Assert.areSame(1, called, '`contentUpdate` was not fired.');
1211 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1215 Assert.areSame(2, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 2 buttons.');
1216 Assert.areSame(1, called, '`contentUpdate` was not fired.');
1231 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1235 Assert.areSame(0, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget has buttons.');
1236 Assert.areSame(1, called, '`contentUpdate` was not fired.');
1251 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1255 Assert.areSame(1, this.widget.get('contentBox').all('.yui3-button').size(), 'The widget did not have 1 button.');
1256 Assert.areSame(0, called, '`contentUpdate` was fired.');