aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/l10n/cs_CZ.js2
-rw-r--r--apps/files_trashbin/l10n/cs_CZ.json2
-rw-r--r--apps/files_trashbin/tests/js/filelistSpec.js22
3 files changed, 24 insertions, 2 deletions
diff --git a/apps/files_trashbin/l10n/cs_CZ.js b/apps/files_trashbin/l10n/cs_CZ.js
index 68aa7789d75..4d0f9b7018d 100644
--- a/apps/files_trashbin/l10n/cs_CZ.js
+++ b/apps/files_trashbin/l10n/cs_CZ.js
@@ -10,7 +10,7 @@ OC.L10N.register(
"restored" : "obnoveno",
"No deleted files" : "Žádné smazané soubory",
"You will be able to recover deleted files from here" : "Odtud budete moci obnovovat odstraněné soubory",
- "No entries found in this folder" : "V tomto adresáři nebylo nic nalezeno",
+ "No entries found in this folder" : "V této složce nebylo nic nalezeno",
"Select all" : "Vybrat vše",
"Name" : "Název",
"Deleted" : "Smazáno",
diff --git a/apps/files_trashbin/l10n/cs_CZ.json b/apps/files_trashbin/l10n/cs_CZ.json
index 1af12b47b66..cffa7b663fa 100644
--- a/apps/files_trashbin/l10n/cs_CZ.json
+++ b/apps/files_trashbin/l10n/cs_CZ.json
@@ -8,7 +8,7 @@
"restored" : "obnoveno",
"No deleted files" : "Žádné smazané soubory",
"You will be able to recover deleted files from here" : "Odtud budete moci obnovovat odstraněné soubory",
- "No entries found in this folder" : "V tomto adresáři nebylo nic nalezeno",
+ "No entries found in this folder" : "V této složce nebylo nic nalezeno",
"Select all" : "Vybrat vše",
"Name" : "Název",
"Deleted" : "Smazáno",
diff --git a/apps/files_trashbin/tests/js/filelistSpec.js b/apps/files_trashbin/tests/js/filelistSpec.js
index fd479234b30..9aa1f907fa9 100644
--- a/apps/files_trashbin/tests/js/filelistSpec.js
+++ b/apps/files_trashbin/tests/js/filelistSpec.js
@@ -220,6 +220,28 @@ describe('OCA.Trashbin.FileList tests', function() {
fileList.findFileEl('somedir.d99999').find('input:checkbox').click();
});
describe('Delete', function() {
+ it('Shows trashbin actions', function() {
+ // visible because a few files were selected
+ expect($('.selectedActions').is(':visible')).toEqual(true);
+ expect($('.selectedActions .delete-selected').is(':visible')).toEqual(true);
+ expect($('.selectedActions .undelete').is(':visible')).toEqual(true);
+
+ // check
+ fileList.$el.find('.select-all').click();
+
+ // stays visible
+ expect($('.selectedActions').is(':visible')).toEqual(true);
+ expect($('.selectedActions .delete-selected').is(':visible')).toEqual(true);
+ expect($('.selectedActions .undelete').is(':visible')).toEqual(true);
+
+ // uncheck
+ fileList.$el.find('.select-all').click();
+
+ // becomes hidden now
+ expect($('.selectedActions').is(':visible')).toEqual(false);
+ expect($('.selectedActions .delete-selected').is(':visible')).toEqual(false);
+ expect($('.selectedActions .undelete').is(':visible')).toEqual(false);
+ });
it('Deletes selected files when "Delete" clicked', function() {
var request;
$('.selectedActions .delete-selected').click();