From 7e701504be9352d21a25d17adca45dc5ed79d792 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 19 Sep 2016 21:29:48 +0200 Subject: Remove upload_limit in files app as it is not needed with PUT upload (#26069) The web UI now uses for PUT uploads which aren't restricted by PHP's upload_max_filesize and post_max_size Signed-off-by: Lukas Reschke --- apps/files/tests/js/fileUploadSpec.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'apps/files/tests') diff --git a/apps/files/tests/js/fileUploadSpec.js b/apps/files/tests/js/fileUploadSpec.js index 19f8cde7e44..fa686dbf3e2 100644 --- a/apps/files/tests/js/fileUploadSpec.js +++ b/apps/files/tests/js/fileUploadSpec.js @@ -35,7 +35,6 @@ describe('OC.Upload tests', function() { // need a dummy button because file-upload checks on it $('#testArea').append( '' + - '' + // 10 MB '' + // 50 MB // TODO: handlebars! '
' + @@ -97,19 +96,6 @@ describe('OC.Upload tests', function() { expect(result[0].submit.calledOnce).toEqual(true); expect(failStub.notCalled).toEqual(true); }); - it('does not add file if it exceeds upload limit', function() { - var result; - $('#upload_limit').val(1000); - - result = addFiles(uploader, [testFile]); - - expect(result[0]).toEqual(null); - expect(failStub.calledOnce).toEqual(true); - expect(failStub.getCall(0).args[1].textStatus).toEqual('sizeexceedlimit'); - expect(failStub.getCall(0).args[1].errorThrown).toEqual( - 'Total file size 5 KB exceeds upload limit 1000 B' - ); - }); it('does not add file if it exceeds free space', function() { var result; $('#free_space').val(1000); -- cgit v1.2.3