@@ -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