Skip to content

Commit 34b3519

Browse files
committed
GridCore: fix tests
1 parent 6ed0bec commit 34b3519

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/dataGrid.tests.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,9 +1898,6 @@ QUnit.module('Assign options', baseModuleConfig, () => {
18981898

18991899
dataGrid.option('groupPanel', { emptyPanelText: 'test' });
19001900
assert.equal(headerPanel._getToolbarOptions.callCount, 5, 'Toolbar items are updated after groupPanel options change');
1901-
1902-
dataGrid.option('searchPanel', { placeholder: 'test' });
1903-
assert.equal(headerPanel._getToolbarOptions.callCount, 6, 'Toolbar items are updated after searchPanel options change');
19041901
});
19051902

19061903
QUnit.test('customizeColumns change', function(assert) {

packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/headerPanel.tests.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ QUnit.module('Header panel', {
4646
const headerPanel = this.headerPanel;
4747
const testElement = $('#container');
4848

49-
this.options.searchPanel = {
49+
this.option('searchPanel', {
5050
visible: true,
5151
width: 160
52-
};
52+
});
5353
// act
5454

5555
headerPanel.render(testElement);
@@ -74,10 +74,10 @@ QUnit.module('Header panel', {
7474
const testElement = $('#container');
7575
let input;
7676

77-
this.options.searchPanel = {
77+
this.option('searchPanel', {
7878
visible: true,
7979
width: 160
80-
};
80+
});
8181

8282
// act
8383
headerPanel.render(testElement);
@@ -295,9 +295,9 @@ QUnit.module('Header panel', {
295295
this.options.groupPanel = {
296296
visible: true
297297
};
298-
this.options.searchPanel = {
298+
this.option('searchPanel', {
299299
visible: true
300-
};
300+
});
301301

302302
// act
303303
headerPanel.render(testElement);
@@ -329,9 +329,9 @@ QUnit.module('Header panel', {
329329
const headerPanel = this.headerPanel;
330330
const testElement = $('#container');
331331

332-
this.options.searchPanel = {
332+
this.option('searchPanel', {
333333
visible: true
334-
};
334+
});
335335

336336
// act
337337
headerPanel.render(testElement);
@@ -348,10 +348,10 @@ QUnit.module('Header panel', {
348348
const headerPanel = this.headerPanel;
349349
const testElement = $('#container');
350350

351-
this.options.searchPanel = {
351+
this.option('searchPanel', {
352352
visible: true,
353353
width: 213
354-
};
354+
});
355355

356356
// act
357357
headerPanel.render(testElement);
@@ -370,9 +370,9 @@ QUnit.module('Header panel', {
370370
const headerPanel = this.headerPanel;
371371
const testElement = $('#container');
372372

373-
this.options.searchPanel = {
373+
this.option('searchPanel', {
374374
visible: true
375-
};
375+
});
376376

377377
// act
378378
headerPanel.render(testElement);
@@ -387,19 +387,19 @@ QUnit.module('Header panel', {
387387
const headerPanel = this.headerPanel;
388388
const container = $('#container');
389389

390-
this.options.searchPanel = {
390+
this.option('searchPanel', {
391391
visible: true
392-
};
392+
});
393393

394394
headerPanel.render(container);
395395

396396
const $headerPanel = container.find('.dx-datagrid-header-panel');
397397
assert.strictEqual($headerPanel.css('display'), 'block', 'header panel visible');
398398

399399
// act
400-
this.options.searchPanel = {
400+
this.option('searchPanel', {
401401
visible: false
402-
};
402+
});
403403

404404
headerPanel.render();
405405

@@ -412,9 +412,9 @@ QUnit.module('Header panel', {
412412
const headerPanel = that.headerPanel;
413413
const container = $('#container');
414414

415-
that.options.searchPanel = {
415+
that.option('searchPanel', {
416416
visible: true
417-
};
417+
});
418418

419419
headerPanel.render(container);
420420

0 commit comments

Comments
 (0)