make eventLimit popover tests work in phantomjs

This commit is contained in:
Adam Shaw
2014-08-22 19:27:31 -07:00
parent 3330e9e795
commit 54cab0af6f
+10 -5
View File
@@ -14,8 +14,11 @@ describe('eventLimit popover', function() {
{ title: 'event2', start: '2014-07-29', end: '2014-07-31', className: 'event2' },
{ title: 'event3', start: '2014-07-29', className: 'event3' },
{ title: 'event4', start: '2014-07-29', className: 'event4' }
]
}
],
dragScroll: false, // don't do autoscrolling while dragging. close quarters in PhantomJS
popoverViewportConstrain: false, // because PhantomJS window is small, don't do smart repositioning
handleWindowResize: false // because showing the popover causes scrollbars and fires resize
};
});
function init() {
@@ -201,9 +204,11 @@ describe('eventLimit popover', function() {
};
init();
$('.fc-more-popover .event4').simulate('drag-n-drop', {
dx: 20
});
setTimeout(function() { // simulate was getting confused about which thing was being clicked :(
$('.fc-more-popover .event1 .fc-title').simulate('drag-n-drop', {
dx: 20
});
}, 0);
});
});