diff options
author | Michael Jobst <mjobst+github@tecratech.de> | 2016-11-02 15:17:16 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-11-14 15:22:27 +0100 |
commit | 96debafd08fb56a0e7930596ce54f401feb442b3 (patch) | |
tree | 72564063ee0f3f3dca6cf07cb2dce4c15115df9e /apps/files_versions/tests | |
parent | cebb68992509215163f6776b76e48411a31a287e (diff) | |
download | nextcloud-server-96debafd08fb56a0e7930596ce54f401feb442b3.tar.gz nextcloud-server-96debafd08fb56a0e7930596ce54f401feb442b3.zip |
Display changes in file versions tab view and detailsView (#26511)
* Display changes in file versions tab view and detailsView
* versions tab enhancements
enhanced js test file
removed css superscript attribute for version size
* Replaced spaces with tabs
Diffstat (limited to 'apps/files_versions/tests')
-rw-r--r-- | apps/files_versions/tests/js/versionstabviewSpec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/tests/js/versionstabviewSpec.js b/apps/files_versions/tests/js/versionstabviewSpec.js index 94285c93aba..9b788db1970 100644 --- a/apps/files_versions/tests/js/versionstabviewSpec.js +++ b/apps/files_versions/tests/js/versionstabviewSpec.js @@ -78,12 +78,14 @@ describe('OCA.Versions.VersionsTabView', function() { var $item = $versions.eq(0); expect($item.find('.downloadVersion').attr('href')).toEqual(version1.getDownloadUrl()); expect($item.find('.versiondate').text()).toEqual('seconds ago'); + expect($item.find('.size').text()).toEqual('< 1 KB'); expect($item.find('.revertVersion').length).toEqual(1); expect($item.find('.preview').attr('src')).toEqual(version1.getPreviewUrl()); $item = $versions.eq(1); expect($item.find('.downloadVersion').attr('href')).toEqual(version2.getDownloadUrl()); expect($item.find('.versiondate').text()).toEqual('2 days ago'); + expect($item.find('.size').text()).toEqual('< 1 KB'); expect($item.find('.revertVersion').length).toEqual(1); expect($item.find('.preview').attr('src')).toEqual(version2.getPreviewUrl()); }); @@ -231,4 +233,3 @@ describe('OCA.Versions.VersionsTabView', function() { }); }); }); - |