Skip to content

Commit c7c46cd

Browse files
Update appointment rectangle dimensions in virtual scrolling tests for accuracy
1 parent 3c95c83 commit c7c46cd

File tree

2 files changed

+39
-26
lines changed

2 files changed

+39
-26
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.integration.tests.js

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -350,16 +350,18 @@ module('Virtual scrolling integration', () => {
350350
y: 1000,
351351
appointmentRects: [
352352
{ left: -9859, top: -9963, height: 798 },
353-
{ left: -9784, top: -10837, height: 38 },
354-
{ left: -9784, top: -9963, height: 798 },
355-
{ left: -9784, top: -10837, height: 38 }
353+
{ left: -9784, top: -10837, height: 798 },
354+
{ left: -9334, top: -9963, height: 798 },
355+
{ left: -9259, top: -10837, height: 798 }
356356
]
357357
},
358358
{
359359
y: 2200,
360360
appointmentRects: [
361-
{ left: -9859, top: -10185, height: 684 },
362-
{ left: -9334, top: -10185, height: 684 },
361+
{ left: -9784, top: -11325, height: 38 },
362+
{ left: -9784, top: -11325, height: 38 },
363+
{ left: -9259, top: -11325, height: 38 },
364+
{ left: -9259, top: -11325, height: 38 }
363365
]
364366
}
365367
],
@@ -376,16 +378,18 @@ module('Virtual scrolling integration', () => {
376378
y: 1000,
377379
appointmentRects: [
378380
{ left: -9859, top: -9994, height: 798 },
379-
{ left: -9784, top: -10108, height: 38 },
381+
{ left: -9784, top: -10868, height: 798 },
380382
{ left: -9334, top: -9994, height: 798 },
381-
{ left: -9259, top: -10108, height: 38 }
383+
{ left: -9259, top: -10868, height: 798 }
382384
]
383385
},
384386
{
385387
y: 2200,
386388
appointmentRects: [
387-
{ left: -9859, top: -10185, height: 684 },
388-
{ left: -9334, top: -10185, height: 684 },
389+
{ left: -9784, top: -11325, height: 38 },
390+
{ left: -9784, top: -11325, height: 38 },
391+
{ left: -9259, top: -11325, height: 38 },
392+
{ left: -9259, top: -11325, height: 38 }
389393
]
390394
}
391395
]
@@ -663,7 +667,8 @@ module('Virtual scrolling integration', () => {
663667
{
664668
offset: { x: 0, y: 2300 },
665669
appointmentRects: [
666-
{ left: -9773, top: -10147, height: 912 }
670+
{ left: -9773, top: -10147, height: 912 },
671+
{ left: -9677, top: -10147, height: 912 }
667672
]
668673
}]
669674
},
@@ -680,7 +685,8 @@ module('Virtual scrolling integration', () => {
680685
{
681686
offset: { x: 0, y: 2300 },
682687
appointmentRects: [
683-
{ left: -9773, top: -10146, height: 912 }
688+
{ left: -9773, top: -10146, height: 912 },
689+
{ left: -9677, top: -10146, height: 912 }
684690
]
685691
}
686692
]
@@ -775,14 +781,14 @@ module('Virtual scrolling integration', () => {
775781
y: 1000,
776782
appointmentRects: [
777783
{ left: -9773.71875, top: -9986, height: 760 },
778-
{ left: -9677.4375, top: -10138.171875, height: 76 }
784+
{ left: -9677.4375, top: -10860, height: 798 }
779785
]
780786
},
781787
{
782788
y: 2200,
783789
appointmentRects: [
784790
{ left: -9773.71875, top: -9324, height: 76 },
785-
{ left: -9677.4375, top: -10160, height: 760 }
791+
{ left: -9677.4375, top: -10198, height: 798 }
786792
]
787793
}
788794
]
@@ -799,14 +805,14 @@ module('Virtual scrolling integration', () => {
799805
y: 1000,
800806
appointmentRects: [
801807
{ left: -9773.578125, top: -10024, height: 798 },
802-
{ left: -9678.15625, top: -10138.171875, height: 38 }
808+
{ left: -9678.15625, top: -10898, height: 798 }
803809
]
804810
},
805811
{
806812
y: 2200,
807813
appointmentRects: [
808814
{ left: -9773.578125, top: -9400, height: 152 },
809-
{ left: -9678.15625, top: -10160, height: 684 }
815+
{ left: -9678.15625, top: -10274, height: 798 }
810816
]
811817
}
812818
]
@@ -933,6 +939,7 @@ module('Virtual scrolling integration', () => {
933939
offset: { x: 0, y: 1000 },
934940
appointmentRects: [
935941
{ left: -9891.5, top: -10108, height: 912 },
942+
{ left: -9816.5, top: -10108, height: 912 }
936943
]
937944
}, {
938945
offset: { x: 0, y: 2200 },
@@ -949,11 +956,13 @@ module('Virtual scrolling integration', () => {
949956
offset: { x: 520, y: 1000 },
950957
appointmentRects: [
951958
{ left: -9886.5, top: -10108, height: 912 },
959+
{ left: -9811.5, top: -10108, height: 912 }
952960
]
953961
}, {
954962
offset: { x: 520, y: 2200 },
955963
appointmentRects: [
956-
{ left: -9886.5, top: -10185, height: 684 },
964+
{ left: -9811.5, top: -11325, height: 38 },
965+
{ left: -9811.5, top: -11325, height: 38 }
957966
]
958967
}]
959968
}
@@ -1068,13 +1077,15 @@ module('Virtual scrolling integration', () => {
10681077
{
10691078
offset: { x: 0, y: 1000 },
10701079
appointmentRects: [
1071-
{ left: -9891.5, top: -10077, height: 912 }
1080+
{ left: -9891.5, top: -10077, height: 912 },
1081+
{ left: -9816.5, top: -10077, height: 912 }
10721082
]
10731083
},
10741084
{
1075-
offset: { x: 0, y: 2100 },
1085+
offset: { x: 0, y: 2200 },
10761086
appointmentRects: [
1077-
{ left: -9891.5, top: -10185, height: 570 }
1087+
{ left: -9816.5, top: -11325, height: 38 },
1088+
{ left: -9816.5, top: -11325, height: 38 }
10781089
]
10791090
},
10801091
{
@@ -1086,13 +1097,15 @@ module('Virtual scrolling integration', () => {
10861097
{
10871098
offset: { x: 520, y: 1000 },
10881099
appointmentRects: [
1089-
{ left: -9886.5, top: -10077, height: 912 }
1100+
{ left: -9886.5, top: -10077, height: 912 },
1101+
{ left: -9811.5, top: -10077, height: 912 }
10901102
]
10911103
},
10921104
{
1093-
offset: { x: 520, y: 2100 },
1105+
offset: { x: 520, y: 2200 },
10941106
appointmentRects: [
1095-
{ left: -9886.5, top: -10185, height: 570 }
1107+
{ left: -9811.5, top: -11325, height: 38 },
1108+
{ left: -9811.5, top: -11325, height: 38 }
10961109
]
10971110
}
10981111
].forEach(({ offset, appointmentRects }) => {
@@ -2338,8 +2351,8 @@ module('Virtual scrolling integration', () => {
23382351
[
23392352
{ y: 0, expectedIndices: [0, 2] },
23402353
{ y: 300, expectedIndices: [2] },
2341-
{ y: 900, expectedIndices: [5, 4] },
2342-
{ y: 1700, expectedIndices: [5, 4, 1] },
2354+
{ y: 900, expectedIndices: [4, 5] },
2355+
{ y: 1700, expectedIndices: [4, 5, 1] },
23432356
{ y: 2400, expectedIndices: [3] },
23442357
{ y: 2700, expectedIndices: [3] },
23452358
{ y: 3000, expectedIndices: [3] },

packages/devextreme/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.timeline.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ module('Virtual scrolling timelines', () => {
303303
expectedRects: [{
304304
left: -10299,
305305
top: -9833,
306-
width: 1600
306+
width: 1650
307307
}, {
308308
left: -10299,
309309
top: -9679,
@@ -327,7 +327,7 @@ module('Virtual scrolling timelines', () => {
327327
}, {
328328
left: -10299,
329329
top: -9525,
330-
width: 1600
330+
width: 1650
331331
}]
332332
},
333333
{

0 commit comments

Comments
 (0)