summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-27 13:36:18 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-27 13:41:01 +0200
commit586b3a9683421181b7cd66aff2d3fabd0f34531e (patch)
tree387b4488859d0173f164d5f94d9b5b58ea1f8a05 /apps/files_external/tests
parent4d6019b73fd8b1a1d8e8fecbeb129bea12feb89d (diff)
downloadnextcloud-server-586b3a9683421181b7cd66aff2d3fabd0f34531e.tar.gz
nextcloud-server-586b3a9683421181b7cd66aff2d3fabd0f34531e.zip
Sync file list with file actions
Whenever file actions are registered later, now the file lists are automatically notified. Added FileActions.addUpdateListener() to be able to receive such notifications. This removes the need for apps to manually call FileActions.display() after registering new actions. This fixes issues with race conditions when file actions are registered after the file list was already rendered.
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/appSpec.js1
-rw-r--r--apps/files_external/tests/js/mountsfilelistSpec.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/tests/appSpec.js b/apps/files_external/tests/appSpec.js
index b00442384da..43902d1c1d0 100644
--- a/apps/files_external/tests/appSpec.js
+++ b/apps/files_external/tests/appSpec.js
@@ -42,6 +42,7 @@ describe('OCA.External.App tests', function() {
});
afterEach(function() {
App.fileList = null;
+ fileList.destroy();
fileList = null;
});
diff --git a/apps/files_external/tests/js/mountsfilelistSpec.js b/apps/files_external/tests/js/mountsfilelistSpec.js
index 96a6b622a4e..b599df77aac 100644
--- a/apps/files_external/tests/js/mountsfilelistSpec.js
+++ b/apps/files_external/tests/js/mountsfilelistSpec.js
@@ -54,6 +54,7 @@ describe('OCA.External.FileList tests', function() {
afterEach(function() {
OCA.Files.FileList.prototype = oldFileListPrototype;
testFiles = undefined;
+ fileList.destroy();
fileList = undefined;
fileActions = undefined;