Skip to content

Commit

Permalink
test: cleanup obsolete frozen column test (#3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Mar 16, 2022
1 parent 7c936d2 commit e37690d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/grid/test/frozen-columns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from '@esm-bundle/chai';
import { fixtureSync, listenOnce } from '@vaadin/testing-helpers';
import '@vaadin/polymer-legacy-adapter/template-renderer.js';
import '../vaadin-grid.js';
import { flushGrid, getRowCells, getRows, infiniteDataProvider, isWithinParentConstraints, wheel } from './helpers.js';
import { flushGrid, getRowCells, getRows, infiniteDataProvider, isWithinParentConstraints } from './helpers.js';

// Returns true if the element's computed transform style matches with the
// computed transform style of a div element with the given transform applied
Expand Down Expand Up @@ -48,15 +48,6 @@ const transformsEqual = (element, transform) => {

after(() => document.documentElement.removeAttribute('dir'));

!isRTL &&
it('should not throw on scrolling when dir changed to rtl after frozen columns set', () => {
columns[0].frozen = true;
grid._debouncerCacheElements.flush();
grid.setAttribute('dir', 'rtl');
// Emulate scrolling with the wheel
expect(() => wheel(grid, 1, 1)).not.to.throw(Error);
});

it('should have last frozen only when there are frozen columns', () => {
expect(columns[0]._lastFrozen).to.be.true;

Expand Down

0 comments on commit e37690d

Please sign in to comment.