mirror of
https://github.com/nextcloud/server.git
synced 2024-08-27 05:55:24 +02:00
Merge pull request #125 from nextcloud/fix-jsunit
Fix failing JS unit tests
This commit is contained in:
commit
19f2e78604
@ -2364,14 +2364,12 @@ describe('OCA.Files.FileList tests', function() {
|
|||||||
*/
|
*/
|
||||||
function dropOn($target, data) {
|
function dropOn($target, data) {
|
||||||
var eventData = {
|
var eventData = {
|
||||||
originalEvent: {
|
delegatedEvent: {
|
||||||
target: $target
|
target: $target
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var ev = new $.Event('fileuploaddrop', eventData);
|
var ev = new $.Event('fileuploaddrop', eventData);
|
||||||
// using triggerHandler instead of trigger so we can pass
|
$uploader.trigger(ev, data || {});
|
||||||
// extra data
|
|
||||||
$uploader.triggerHandler(ev, data || {});
|
|
||||||
return ev;
|
return ev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user