@@ -34,8 +34,6 @@ const TIMELINE_DAY = { class: 'dxSchedulerTimelineDay', name: 'SchedulerTimeline
3434const TIMELINE_WEEK = { class : 'dxSchedulerTimelineWeek' , name : 'SchedulerTimelineWeek' } ;
3535const TIMELINE_MONTH = { class : 'dxSchedulerTimelineMonth' , name : 'SchedulerTimelineMonth' } ;
3636
37- const toSelector = cssClass => '.' + cssClass ;
38-
3937const checkHeaderCells = function ( $element , assert , interval , groupCount , viewDuration ) {
4038 interval = interval || 0.5 ;
4139 viewDuration = viewDuration || 1 ;
@@ -1223,7 +1221,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
12231221 QUnit . test ( `first-group-cell class should be assigned to correct cells in basic case in ${ view . name } ` , async function ( assert ) {
12241222 const instance = await this . createInstance ( view . class ) ;
12251223
1226- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( ) {
1224+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( ) {
12271225 assert . ok ( $ ( this ) . hasClass ( FIRST_GROUP_CELL_CLASS ) , 'Date table cell has first-group class' ) ;
12281226 } ) ;
12291227
@@ -1241,7 +1239,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
12411239 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
12421240 } ] ) ;
12431241
1244- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1242+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
12451243 checkFirstGroupCell ( assert , this , index , columnCountInGroup , 'Date table' ) ;
12461244 } ) ;
12471245
@@ -1261,7 +1259,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
12611259 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
12621260 } ] ) ;
12631261
1264- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1262+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
12651263 checkFirstGroupCell ( assert , this , index , GROUP_COUNT , 'Date table' ) ;
12661264 } ) ;
12671265
@@ -1281,7 +1279,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
12811279 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
12821280 } ] ) ;
12831281
1284- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1282+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
12851283 if ( Math . floor ( index / columnCountInGroup ) % rowCountInGroup === 0 ) {
12861284 assert . ok ( $ ( this ) . hasClass ( FIRST_GROUP_CELL_CLASS ) , 'Date table cell has first-group class' ) ;
12871285 } else {
@@ -1297,7 +1295,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
12971295 QUnit . test ( `last-group-cell class should be assigned to correct cells in basic case in ${ view . name } ` , async function ( assert ) {
12981296 const instance = await this . createInstance ( view . class ) ;
12991297
1300- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( ) {
1298+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( ) {
13011299 assert . ok ( $ ( this ) . hasClass ( LAST_GROUP_CELL_CLASS ) , 'Date table cell has last-group class' ) ;
13021300 } ) ;
13031301
@@ -1315,7 +1313,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
13151313 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
13161314 } ] ) ;
13171315
1318- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1316+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
13191317 checkLastGroupCell ( assert , this , index , columnCountInGroup , 'Date table' ) ;
13201318 } ) ;
13211319
@@ -1335,7 +1333,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
13351333 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
13361334 } ] ) ;
13371335
1338- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1336+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
13391337 checkLastGroupCell ( assert , this , index , GROUP_COUNT , 'Date table' ) ;
13401338 } ) ;
13411339
@@ -1355,7 +1353,7 @@ QUnit.module('FirstGroupCell and LastGroupCell classes', () => {
13551353 dataSource : [ { id : 1 , text : 'a' } , { id : 2 , text : 'b' } ]
13561354 } ] ) ;
13571355
1358- instance . $element ( ) . find ( toSelector ( CELL_CLASS ) ) . each ( function ( index ) {
1356+ instance . $element ( ) . find ( `. ${ CELL_CLASS } ` ) . each ( function ( index ) {
13591357 if ( ( Math . floor ( index / columnCountInGroup ) + 1 ) % rowCountInGroup === 0 ) {
13601358 assert . ok ( $ ( this ) . hasClass ( LAST_GROUP_CELL_CLASS ) , 'Date table cell has last-group class' ) ;
13611359 } else {
0 commit comments