$.scroller;
        flushGrid(grid);
      });

      it('update size using item index', done => {
        const firstItem = getFirstVisibleItem(grid);

        expect(firstItem.offsetHeight).to.be.below(100);

        grid.classList.add('high');
        flushGrid(grid);

        // The following is to make Safari react
        // to host class change and apply new styles
        grid.style.display = 'none';
        flush(() => {
          grid.style.display = 'block';
          expect(firstItem.offsetHeigh