'item3');

          s2.select('item2');
          assert.equal(s2.selected, 'item2');
        });

        test('`selectIndex()` selects an item with the given index', function() {
          // This selector has attributes `selected` and `attr-for-selected`
          // matching this item.
          assert.equal(s2.selectedItem, s2.items[2]);

          s2.selectIndex(1);
          assert.equal(s2.selected, 'item1');
          assert.equal(s2.selectedItem, s2.items[1]);

          s2.selectIndex(3);
      