Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-31 20:05:15 +0300
committerJulius Härtl <jus@bitgrid.net>2022-09-01 15:15:42 +0300
commit6ad600ea8adb13b53ccb74ea8c59100b2ce11941 (patch)
treeb1430e787fba410203e53a1a7f9308dec3c79125
parentb6a68028576e4c497e2e23e2b45121412522b030 (diff)
Fix jsunit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/comments/tests/js/filespluginSpec.js4
-rw-r--r--apps/files/tests/js/favoritesfilelistspec.js4
-rw-r--r--apps/files/tests/js/tagspluginspec.js4
-rw-r--r--apps/files_external/tests/js/mountsfilelistSpec.js4
-rw-r--r--apps/files_sharing/tests/js/shareSpec.js4
-rw-r--r--apps/files_trashbin/tests/js/filelistSpec.js4
-rw-r--r--apps/systemtags/tests/js/systemtagsfilelistSpec.js8
7 files changed, 16 insertions, 16 deletions
diff --git a/apps/comments/tests/js/filespluginSpec.js b/apps/comments/tests/js/filespluginSpec.js
index 0cfe584218e..4230a77874d 100644
--- a/apps/comments/tests/js/filespluginSpec.js
+++ b/apps/comments/tests/js/filespluginSpec.js
@@ -26,7 +26,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
var testFiles;
beforeEach(function() {
- var $content = $('<div id="content"></div>');
+ var $content = $('<div id="app-content"></div>');
$('#testArea').append($content);
// dummy file list
var $div = $(
@@ -36,7 +36,7 @@ describe('OCA.Comments.FilesPlugin tests', function() {
'<tbody class="files-fileList"></tbody>' +
'</table>' +
'</div>');
- $('#content').append($div);
+ $('#app-content').append($div);
fileList = new OCA.Files.FileList($div);
OCA.Comments.FilesPlugin.attach(fileList);
diff --git a/apps/files/tests/js/favoritesfilelistspec.js b/apps/files/tests/js/favoritesfilelistspec.js
index 6cfc078cf26..5d1ad2312f2 100644
--- a/apps/files/tests/js/favoritesfilelistspec.js
+++ b/apps/files/tests/js/favoritesfilelistspec.js
@@ -28,7 +28,7 @@ describe('OCA.Files.FavoritesFileList tests', function() {
beforeEach(function() {
// init parameters and test table elements
$('#testArea').append(
- '<div id="app-content-container">' +
+ '<div id="app-content">' +
// init horrible parameters
'<input type="hidden" id="permissions" value="31"></input>' +
// dummy controls
@@ -60,7 +60,7 @@ describe('OCA.Files.FavoritesFileList tests', function() {
beforeEach(function() {
fileList = new OCA.Files.FavoritesFileList(
- $('#app-content-container')
+ $('#app-content')
);
OCA.Files.FavoritesPlugin.attach(fileList);
diff --git a/apps/files/tests/js/tagspluginspec.js b/apps/files/tests/js/tagspluginspec.js
index e59a9695592..864e3cffca5 100644
--- a/apps/files/tests/js/tagspluginspec.js
+++ b/apps/files/tests/js/tagspluginspec.js
@@ -27,7 +27,7 @@ describe('OCA.Files.TagsPlugin tests', function() {
var testFiles;
beforeEach(function() {
- var $content = $('<div id="content"></div>');
+ var $content = $('<div id="app-content"></div>');
$('#testArea').append($content);
// dummy file list
var $div = $(
@@ -37,7 +37,7 @@ describe('OCA.Files.TagsPlugin tests', function() {
'<tbody class="files-fileList"></tbody>' +
'</table>' +
'</div>');
- $('#content').append($div);
+ $('#app-content').append($div);
fileList = new OCA.Files.FileList($div);
OCA.Files.TagsPlugin.attach(fileList);
diff --git a/apps/files_external/tests/js/mountsfilelistSpec.js b/apps/files_external/tests/js/mountsfilelistSpec.js
index 598eff25d89..389b76550b7 100644
--- a/apps/files_external/tests/js/mountsfilelistSpec.js
+++ b/apps/files_external/tests/js/mountsfilelistSpec.js
@@ -31,7 +31,7 @@ describe('OCA.Files_External.FileList tests', function() {
// init parameters and test table elements
$('#testArea').append(
- '<div id="app-content-container">' +
+ '<div id="app-content">' +
// init horrible parameters
'<input type="hidden" id="permissions" value="31"></input>' +
// dummy controls
@@ -77,7 +77,7 @@ describe('OCA.Files_External.FileList tests', function() {
beforeEach(function() {
fileList = new OCA.Files_External.FileList(
- $('#app-content-container')
+ $('#app-content')
);
reloading = fileList.reload();
diff --git a/apps/files_sharing/tests/js/shareSpec.js b/apps/files_sharing/tests/js/shareSpec.js
index 6b4dd35ec85..8a48ce54f19 100644
--- a/apps/files_sharing/tests/js/shareSpec.js
+++ b/apps/files_sharing/tests/js/shareSpec.js
@@ -41,7 +41,7 @@ describe('OCA.Sharing.Util tests', function() {
}
beforeEach(function() {
- var $content = $('<div id="content"></div>');
+ var $content = $('<div id="app-content"></div>');
$('#testArea').append($content);
// dummy file list
var $div = $(
@@ -51,7 +51,7 @@ describe('OCA.Sharing.Util tests', function() {
'<tbody class="files-fileList"></tbody>' +
'</table>' +
'</div>');
- $('#content').append($div);
+ $('#app-content').append($div);
var fileActions = new OCA.Files.FileActions();
fileList = new OCA.Files.FileList(
diff --git a/apps/files_trashbin/tests/js/filelistSpec.js b/apps/files_trashbin/tests/js/filelistSpec.js
index 90eba960196..9e27188efb8 100644
--- a/apps/files_trashbin/tests/js/filelistSpec.js
+++ b/apps/files_trashbin/tests/js/filelistSpec.js
@@ -42,7 +42,7 @@ describe('OCA.Trashbin.FileList tests', function () {
// init parameters and test table elements
$('#testArea').append(
- '<div id="app-content-trashbin">' +
+ '<div id="app-content">' +
// set this but it shouldn't be used (could be the one from the
// files app)
'<input type="hidden" id="permissions" value="31"></input>' +
@@ -105,7 +105,7 @@ describe('OCA.Trashbin.FileList tests', function () {
// register file actions like the trashbin App does
var fileActions = OCA.Trashbin.App._createFileActions(fileList);
fileList = new OCA.Trashbin.FileList(
- $('#app-content-trashbin'), {
+ $('#app-content'), {
fileActions: fileActions,
multiSelectMenu: [{
name: 'restore',
diff --git a/apps/systemtags/tests/js/systemtagsfilelistSpec.js b/apps/systemtags/tests/js/systemtagsfilelistSpec.js
index ab831e7f849..facdf8dc42c 100644
--- a/apps/systemtags/tests/js/systemtagsfilelistSpec.js
+++ b/apps/systemtags/tests/js/systemtagsfilelistSpec.js
@@ -28,7 +28,7 @@ describe('OCA.SystemTags.FileList tests', function() {
beforeEach(function() {
// init parameters and test table elements
$('#testArea').append(
- '<div id="app-content-container">' +
+ '<div id="app-content">' +
// init horrible parameters
'<input type="hidden" id="permissions" value="31"></input>' +
'<div class="files-controls"></div>' +
@@ -77,7 +77,7 @@ describe('OCA.SystemTags.FileList tests', function() {
]);
fileList = new OCA.SystemTags.FileList(
- $('#app-content-container'), {
+ $('#app-content'), {
systemTagIds: []
}
);
@@ -167,7 +167,7 @@ describe('OCA.SystemTags.FileList tests', function() {
it('renders empty message when no tags were set', function() {
fileList = new OCA.SystemTags.FileList(
- $('#app-content-container'), {
+ $('#app-content'), {
systemTagIds: []
}
);
@@ -181,7 +181,7 @@ describe('OCA.SystemTags.FileList tests', function() {
it('render files', function(done) {
fileList = new OCA.SystemTags.FileList(
- $('#app-content-container'), {
+ $('#app-content'), {
systemTagIds: ['123', '456']
}
);