You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.strictEqual(this.getItem().attr('aria-label'),isSelectionActive ? 'item 1' : undefined,'aria-label is correct on init');
516
+
517
+
this.instance.option({items: updatedItems});
518
+
519
+
assert.strictEqual(this.getItem().attr('aria-label'),isSelectionActive ? 'item 2' : undefined,'aria-label is correct if items were changed in runtime');
QUnit.test(`showSelectionControls is ${showSelectionControls}, selectionMode is ${selectionMode}, items is string, displayExpr is not specified`,function(assert){
526
+
this.reinit({
527
+
showSelectionControls,
528
+
selectionMode,
529
+
items: ['item 1'],
530
+
displayExpr: null,
531
+
});
532
+
533
+
this.checkAriaLabel(assert,['item 2']);
534
+
});
535
+
536
+
QUnit.test(`showSelectionControls is ${showSelectionControls}, selectionMode is ${selectionMode}, items is object, displayExpr is not specified`,function(assert){
537
+
this.reinit({
538
+
showSelectionControls,
539
+
selectionMode,
540
+
items: [{text: 'item 1'}],
541
+
displayExpr: null,
542
+
});
543
+
544
+
this.checkAriaLabel(assert,[{text: 'item 2'}]);
545
+
});
546
+
547
+
QUnit.test(`showSelectionControls is ${showSelectionControls}, selectionMode is ${selectionMode}, items is object, displayExpr is specified`,function(assert){
0 commit comments