From: Jan-Christoph Borchardt Date: Thu, 26 Mar 2015 16:10:59 +0000 (+0100) Subject: mock up missing elements in the tests X-Git-Tag: v8.1.0alpha1~163^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d1db727d1fba96dac59b42a62c49c32091216ef2;p=nextcloud-server.git mock up missing elements in the tests --- diff --git a/core/js/js.js b/core/js/js.js index 7a895a22419..ad14c2a855a 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1197,7 +1197,7 @@ function initCore() { setupMainMenu(); // move triangle of apps dropdown to align with app name triangle - // 68 is the additional offset coming from the logo width + // 2 is the additional offset between the triangles if($('#navigation').length) { $('#header #owncloud + .menutoggle').one('click', function(){ var caretPosition = $('.header-appname + .icon-caret').offset().left - 2; diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 7d06ac2e7df..6f7a34d21c8 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -418,7 +418,10 @@ describe('Core base tests', function() { beforeEach(function() { clock = sinon.useFakeTimers(); $('#testArea').append('' + ''); $toggle = $('#header').find('.menutoggle');