diff options
author | Robin Appelman <robin@icewind.nl> | 2017-07-11 14:01:16 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-07-11 14:03:11 +0200 |
commit | e1d6ca3c53a12e6fea761c41dfcb2be2e6ed174d (patch) | |
tree | b4ba4894a1644a381544a6a270984036ca055d18 /apps | |
parent | 12c9b1efb077a45a6ef0bf29ac7e5b149539cf49 (diff) | |
download | nextcloud-server-e1d6ca3c53a12e6fea761c41dfcb2be2e6ed174d.tar.gz nextcloud-server-e1d6ca3c53a12e6fea761c41dfcb2be2e6ed174d.zip |
fix test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index ddd9a45d153..41d202e9323 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -2808,22 +2808,24 @@ describe('OCA.Files.FileList tests', function() { var eventData = { delegatedEvent: { target: $target + }, + preventDefault: function () { } }; uploader.trigger('drop', eventData, data || {}); return !!data.targetDir; } - it('drop on a tr or crumb outside file list does not trigger upload', function() { - var $anotherTable = $('<table><tbody><tr><td>outside<div class="crumb">crumb</div></td></tr></table>'); - var ev; - $('#testArea').append($anotherTable); - ev = dropOn($anotherTable.find('tr'), uploadData); - expect(ev).toEqual(false); + it('drop on a tr or crumb outside file list does not trigger upload', function() { + var $anotherTable = $('<table><tbody><tr><td>outside<div class="crumb">crumb</div></td></tr></table>'); + var ev; + $('#testArea').append($anotherTable); + ev = dropOn($anotherTable.find('tr'), uploadData); + expect(ev).toEqual(false); - ev = dropOn($anotherTable.find('.crumb'), uploadData); - expect(ev).toEqual(false); - }); + ev = dropOn($anotherTable.find('.crumb'), uploadData); + expect(ev).toEqual(false); + }); it('drop on an element outside file list container does not trigger upload', function() { var $anotherEl = $('<div>outside</div>'); var ev; |