You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test('should not break due to minPresenceAhead when breaking does not improve presence because the node is already the first non-fixed node on the page, to avoid infinite loops',()=>{
406
+
constresult=shouldBreak(
407
+
{
408
+
type: 'VIEW',
409
+
props: {minPresenceAhead: 400},
410
+
style: {},
411
+
children: [],
412
+
box: {
413
+
top: 500,
414
+
right: 0,
415
+
bottom: 0,
416
+
left: 0,
417
+
height: 400,
418
+
width: 200,
419
+
marginTop: 500,
420
+
marginBottom: 0,
421
+
},
422
+
},
423
+
[
424
+
{
425
+
type: 'VIEW',
426
+
props: {},
427
+
style: {},
428
+
children: [],
429
+
box: {
430
+
top: 900,
431
+
right: 0,
432
+
bottom: 0,
433
+
left: 0,
434
+
height: 200,
435
+
width: 200,
436
+
marginTop: 0,
437
+
marginBottom: 0,
438
+
},
439
+
},
440
+
],
441
+
1000,
442
+
[],
355
443
);
356
444
357
445
expect(result).toEqual(false);
358
446
});
359
447
360
-
test('should not break due to minPresenceAhead when breaking does not improve presence, to avoid infinite loops',()=>{
448
+
test('should not break due to minPresenceAhead even when there are some previous fixed nodes on the page, to avoid infinite loops',()=>{
0 commit comments