diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-12-01 16:17:28 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-12-01 16:20:44 +0100 |
commit | c02ef695217f42dff501e481a50f4669d1cb1f29 (patch) | |
tree | 98ef997af355d9fd050645a7ba5c827056c87392 /apps/files_sharing/tests/js | |
parent | 8db4dd7585aa9daebb32a3f3305f4061b17c316d (diff) | |
download | nextcloud-server-c02ef695217f42dff501e481a50f4669d1cb1f29.tar.gz nextcloud-server-c02ef695217f42dff501e481a50f4669d1cb1f29.zip |
Simple Plugin system for Javascript
Diffstat (limited to 'apps/files_sharing/tests/js')
-rw-r--r-- | apps/files_sharing/tests/js/shareSpec.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/js/sharedfilelistSpec.js | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/js/shareSpec.js b/apps/files_sharing/tests/js/shareSpec.js index 2cf5dc47b63..d64d4ea8137 100644 --- a/apps/files_sharing/tests/js/shareSpec.js +++ b/apps/files_sharing/tests/js/shareSpec.js @@ -41,12 +41,12 @@ describe('OCA.Sharing.Util tests', function() { $('#content').append($div); var fileActions = new OCA.Files.FileActions(); - OCA.Sharing.Util.initialize(fileActions); fileList = new OCA.Files.FileList( $div, { fileActions : fileActions } ); + OCA.Sharing.Util.attach(fileList); testFiles = [{ id: 1, diff --git a/apps/files_sharing/tests/js/sharedfilelistSpec.js b/apps/files_sharing/tests/js/sharedfilelistSpec.js index dc6931af6e8..d85c0ab6dca 100644 --- a/apps/files_sharing/tests/js/sharedfilelistSpec.js +++ b/apps/files_sharing/tests/js/sharedfilelistSpec.js @@ -50,7 +50,6 @@ describe('OCA.Sharing.FileList tests', function() { // the sharing code oldFileListPrototype = _.extend({}, OCA.Files.FileList.prototype); fileActions = new OCA.Files.FileActions(); - OCA.Sharing.Util.initialize(fileActions); }); afterEach(function() { OCA.Files.FileList.prototype = oldFileListPrototype; @@ -72,6 +71,7 @@ describe('OCA.Sharing.FileList tests', function() { sharedWithUser: true } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -193,6 +193,7 @@ describe('OCA.Sharing.FileList tests', function() { sharedWithUser: false } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -433,6 +434,7 @@ describe('OCA.Sharing.FileList tests', function() { linksOnly: true } ); + OCA.Sharing.Util.attach(fileList); fileList.reload(); @@ -580,6 +582,7 @@ describe('OCA.Sharing.FileList tests', function() { fileActions: fileActions } ); + OCA.Sharing.Util.attach(fileList); }); it('external storage root folder', function () { |