Fix failing JS unit tests

* fixes #124
This commit is contained in:
Morris Jobke 2016-06-16 11:00:58 +02:00
parent 700ff6da58
commit 51b067d603
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 2 additions and 4 deletions

View File

@ -2364,14 +2364,12 @@ describe('OCA.Files.FileList tests', function() {
*/
function dropOn($target, data) {
var eventData = {
originalEvent: {
delegatedEvent: {
target: $target
}
};
var ev = new $.Event('fileuploaddrop', eventData);
// using triggerHandler instead of trigger so we can pass
// extra data
$uploader.triggerHandler(ev, data || {});
$uploader.trigger(ev, data || {});
return ev;
}