From 249a5dbdba0dc3628c0f3490680de61dc91aafc8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 2 May 2019 16:03:58 +0200 Subject: Move oc_webroot, OC.webroot and OC.getRootPath() to the bundle Signed-off-by: Christoph Wurst --- core/js/tests/specHelper.js | 8 ++++---- core/js/tests/specs/sharedialoglinkshareview.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core/js/tests') diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index 970b278089d..7dcc321f296 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -86,11 +86,11 @@ window.firstDay = 0; // setup dummy webroots /* jshint camelcase: false */ window.oc_debug = true; -// FIXME: oc_webroot is supposed to be only the path!!! -window.oc_webroot = location.href + '/'; +// FIXME: OC.webroot is supposed to be only the path!!! +OC.webroot = location.href + '/'; window.oc_appswebroots = { - "files": window.oc_webroot + '/apps/files/', - "files_sharing": window.oc_webroot + '/apps/files_sharing/' + "files": window.webroot + '/apps/files/', + "files_sharing": window.webroot + '/apps/files_sharing/' }; OC.config = { session_lifetime: 600 * 1000, diff --git a/core/js/tests/specs/sharedialoglinkshareview.js b/core/js/tests/specs/sharedialoglinkshareview.js index 9e6c67dca14..f2a64a50ff8 100644 --- a/core/js/tests/specs/sharedialoglinkshareview.js +++ b/core/js/tests/specs/sharedialoglinkshareview.js @@ -243,7 +243,7 @@ describe('OC.Share.ShareDialogLinkShareView', function () { configModel.isShareWithLinkAllowed.returns(true); // "Enable" Talk - window.oc_appswebroots['spreed'] = window.oc_webroot + '/apps/files/'; + window.oc_appswebroots['spreed'] = OC.getRootPath() + '/apps/files/'; shareModel.set({ linkShares: [{ -- cgit v1.2.3