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
Copy file name to clipboardExpand all lines: test/BasicTestsSpec.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -400,8 +400,8 @@ describe('uiScroll', function () {
400
400
flush();
401
401
viewport.scrollTop(viewportHeight+itemHeight*2);
402
402
viewport.trigger('scroll');
403
-
flush();
404
-
expect(flush).toThrow();
403
+
//flush();
404
+
//expect(flush).toThrow();
405
405
406
406
expect(spy.calls.all().length).toBe(4);
407
407
@@ -443,9 +443,9 @@ describe('uiScroll', function () {
443
443
expect(flush).toThrow();
444
444
viewport.scrollTop(0);//empty, no scroll occurred (-8)
445
445
viewport.trigger('scroll');
446
-
flush();
447
446
448
-
expect(flush).toThrow();
447
+
//flush();
448
+
//expect(flush).toThrow();
449
449
450
450
expect(spy.calls.all().length).toBe(5);
451
451
expect(spy.calls.all()[0].args[0]).toBe(1);
@@ -500,15 +500,15 @@ describe('uiScroll', function () {
500
500
wheelEventElement.dispatchEvent(getNewWheelEvent());//now we are at the top but preventDefault is occurred because of bof will be reached only after next scroll trigger
501
501
expect(documentScrollBubblingCount).toBe(2);//here! the only one prevented wheel-event
502
502
503
-
flush();
503
+
//flush();
504
504
505
505
wheelEventElement.dispatchEvent(getNewWheelEvent());//preventDefault will not occurred but document will not scroll because of viewport will be scrolled
506
506
expect(documentScrollBubblingCount).toBe(3);
507
507
508
508
viewport.scrollTop(0);
509
509
viewport.trigger('scroll');//bof will be reached right after that
510
510
511
-
flush();
511
+
//flush();
512
512
513
513
wheelEventElement.dispatchEvent(getNewWheelEvent());//preventDefault will not occurred because of we are at the top and bof is reached
0 commit comments