diff options
author | Robin Appelman <robin@icewind.nl> | 2017-07-11 14:01:16 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-07-12 12:20:14 +0200 |
commit | 9e675dd8b178586a69cc2b063ddf0ce928417ba3 (patch) | |
tree | cfecf4093d7a05e64befc25af9e2c49fa5b97756 /apps | |
parent | d05f67b2f3eec245ac09ecdbff4dcedbfe7645c3 (diff) | |
download | nextcloud-server-9e675dd8b178586a69cc2b063ddf0ce928417ba3.tar.gz nextcloud-server-9e675dd8b178586a69cc2b063ddf0ce928417ba3.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 b7ee9c8554e..ffb04361041 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -2694,22 +2694,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; |