Skip to content

Commit

Permalink
Fix FF test after #11724 (#11876)
Browse files Browse the repository at this point in the history
  • Loading branch information
vconst authored Feb 4, 2020
1 parent d6d3eb1 commit 5be86f1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions testing/tests/DevExpress.ui.widgets.dataGrid/dataGrid.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,6 @@ QUnit.test('focusedRowKey should not overwrite dataSource field', function(asser

QUnit.test('DataGrid should not scroll back to the focusedRow after paging if virtual scrolling (T718905, T719205)', function(assert) {
// arrange
let isReady;
const data = [
{ name: 'Alex', phone: '111111', room: 6 },
{ name: 'Dan', phone: '2222222', room: 5 },
Expand All @@ -4653,18 +4652,14 @@ QUnit.test('DataGrid should not scroll back to the focusedRow after paging if vi
focusedRowEnabled: true,
focusedRowIndex: 0,
scrolling: { mode: 'virtual' },
paging: { pageSize: 2 },
onContentReady: function(e) {
if(!isReady) {
// act
e.component.pageIndex(1);
isReady = true;
}
}
paging: { pageSize: 2 }
}).dxDataGrid('instance');

this.clock.tick();

dataGrid.pageIndex(1);
this.clock.tick();

// assert
assert.equal(dataGrid.pageIndex(), 1, 'pageIndex');
});
Expand Down

0 comments on commit 5be86f1

Please sign in to comment.