réplica de
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
Este commit está contenido en:
commit
19f2e78604
@ -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;
|
||||
}
|
||||
|
||||
|
Cargando…
Referencia en una nueva incidencia
Block a user