summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2016-01-15 20:46:39 +0000
committerRobin McCorkell <rmccorkell@owncloud.com>2016-01-15 20:46:39 +0000
commitdf7db3685ebc4d188d604e1ccf94c4ecf0f2d5b1 (patch)
treece16f8c0df8814c090235df2bf788feee916e6c3 /apps/files/tests
parenta49aff2db79aa5913ce000f6752e9347d170a63f (diff)
downloadnextcloud-server-df7db3685ebc4d188d604e1ccf94c4ecf0f2d5b1.tar.gz
nextcloud-server-df7db3685ebc4d188d604e1ccf94c4ecf0f2d5b1.zip
Remove faulty directory permissions test
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/filelistSpec.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index e6046f2197e..e9662b71b93 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -1705,16 +1705,6 @@ describe('OCA.Files.FileList tests', function() {
});
});
describe('Selection overlay', function() {
- it('show delete action according to directory permissions', function() {
- fileList.setFiles(testFiles);
- $('#permissions').val(OC.PERMISSION_READ | OC.PERMISSION_DELETE);
- $('.select-all').click();
- expect(fileList.$el.find('.delete-selected').hasClass('hidden')).toEqual(false);
- $('.select-all').click();
- $('#permissions').val(OC.PERMISSION_READ);
- $('.select-all').click();
- expect(fileList.$el.find('.delete-selected').hasClass('hidden')).toEqual(true);
- });
it('show doesnt show the delete action if one or more files are not deletable', function () {
fileList.setFiles(testFiles);
$('#permissions').val(OC.PERMISSION_READ | OC.PERMISSION_DELETE);