diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-22 11:16:42 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-22 11:16:42 +0200 |
commit | d6e1643a0e448c45f35311c3635125a2c0f39a45 (patch) | |
tree | 13d3410e35f8762be461b207b81a09883a55530c /apps/files/tests | |
parent | 542b3958580ea77879d8c941a167af75972fa60c (diff) | |
download | nextcloud-server-d6e1643a0e448c45f35311c3635125a2c0f39a45.tar.gz nextcloud-server-d6e1643a0e448c45f35311c3635125a2c0f39a45.zip |
Fix dropping files below the table
Diffstat (limited to 'apps/files/tests')
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index e5bbf0f0fb8..61a0dc31295 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -1730,7 +1730,7 @@ describe('OCA.Files.FileList tests', function() { ev = dropOn($anotherTable.find('.crumb')); expect(ev.result).toEqual(false); }); - it('drop on an element outside file list does not trigger upload', function() { + it('drop on an element outside file list container does not trigger upload', function() { var $anotherEl = $('<div>outside</div>'); var ev; $('#testArea').append($anotherEl); @@ -1744,6 +1744,12 @@ describe('OCA.Files.FileList tests', function() { expect(ev.result).not.toEqual(false); }); + it('drop on an element on the table container triggers upload', function() { + var ev; + ev = dropOn($('#app-content-files'), uploadData); + + expect(ev.result).not.toEqual(false); + }); it('drop on an element inside the table does not trigger upload if no upload permission', function() { $('#permissions').val(0); var ev; |