diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-25 16:17:33 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-25 16:17:33 +0200 |
commit | ab1c34c5a57b4e6ac27c18b4197c9431d70eba05 (patch) | |
tree | 77098d7408dc584899e25d95321d91517e86f37f /apps | |
parent | 7cee919f57c916ee6e3291c795fe25802d17c3ba (diff) | |
download | nextcloud-server-ab1c34c5a57b4e6ac27c18b4197c9431d70eba05.tar.gz nextcloud-server-ab1c34c5a57b4e6ac27c18b4197c9431d70eba05.zip |
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/tests/js/filelistSpec.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 5061d70c4c7..836a5e5ce71 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -749,8 +749,8 @@ describe('OCA.Files.FileList tests', function() { it('Restores thumbnail when rename was cancelled', function() { doRename(); - expect(OC.TestUtil.getImageUrl(fileList.findFileEl('Tu_after_three.txt').find('.thumbnail'))) - .toEqual(OC.imagePath('core', 'loading.gif')); + expect(fileList.findFileEl('Tu_after_three.txt').find('.thumbnail').parent().attr('class')) + .toEqual('icon-loading-small'); deferredRename.reject(409); @@ -837,8 +837,8 @@ describe('OCA.Files.FileList tests', function() { it('Restores thumbnail if a file could not be moved', function() { fileList.move('One.txt', '/somedir'); - expect(OC.TestUtil.getImageUrl(fileList.findFileEl('One.txt').find('.thumbnail'))) - .toEqual(OC.imagePath('core', 'loading.gif')); + expect(fileList.findFileEl('One.txt').find('.thumbnail').parent().attr('class')) + .toEqual('icon-loading-small'); expect(moveStub.calledOnce).toEqual(true); @@ -934,8 +934,8 @@ describe('OCA.Files.FileList tests', function() { it('Restores thumbnail if a file could not be copied', function() { fileList.copy('One.txt', '/somedir'); - expect(OC.TestUtil.getImageUrl(fileList.findFileEl('One.txt').find('.thumbnail'))) - .toEqual(OC.imagePath('core', 'loading.gif')); + expect(fileList.findFileEl('One.txt').find('.thumbnail').parent().attr('class')) + .toEqual('icon-loading-small'); expect(copyStub.calledOnce).toEqual(true); @@ -3149,8 +3149,9 @@ describe('OCA.Files.FileList tests', function() { it('shows spinner on busy rows', function() { fileList.showFileBusyState('Two.jpg', true); expect($tr.hasClass('busy')).toEqual(true); - expect(OC.TestUtil.getImageUrl($tr.find('.thumbnail'))) - .toEqual(OC.imagePath('core', 'loading.gif')); + expect($tr.find('.thumbnail').parent().attr('class')) + .toEqual('icon-loading-small'); + fileList.showFileBusyState('Two.jpg', false); expect($tr.hasClass('busy')).toEqual(false); |