From 419d72e0eed300e5792f02c8d458a5da0367541d Mon Sep 17 00:00:00 2001 From: Abijeet Date: Sat, 16 Jun 2018 13:07:55 +0530 Subject: [PATCH] Adds a test case for the loading symbol in deleted files. Signed-off-by: Abijeet --- apps/files/js/filelist.js | 3 +-- apps/files/tests/js/filelistSpec.js | 2 +- apps/files_trashbin/tests/js/filelistSpec.js | 10 ++++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 08c2844a29..c420e7212a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -275,8 +275,7 @@ if (_.isUndefined(options.detailsViewEnabled) || options.detailsViewEnabled) { this._detailsView = new OCA.Files.DetailsView(); this._detailsView.$el.insertBefore(this.$el); - // this._detailsView.$el.addClass('disappear'); - this.showDetailsView('/'); + this._detailsView.$el.addClass('disappear'); } this._initFileActions(options.fileActions); diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js index 27c5699778..efaf9968de 100644 --- a/apps/files/tests/js/filelistSpec.js +++ b/apps/files/tests/js/filelistSpec.js @@ -94,7 +94,7 @@ describe('OCA.Files.FileList tests', function() { '' + 'Name' + '