From d1db727d1fba96dac59b42a62c49c32091216ef2 Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Thu, 26 Mar 2015 17:10:59 +0100
Subject: [PATCH] mock up missing elements in the tests

---
 core/js/js.js                   | 2 +-
 core/js/tests/specs/coreSpec.js | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

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('<div id="header">' +
-				'<a class="menutoggle" href="#"></a>' +
+				'<a class="menutoggle" href="#">' +
+				'<h1 class="header-appname"></h1>' +
+				'<div class="icon-caret"></div>' +
+				'</a>' +
 				'</div>' +
 				'<div id="navigation"></div>');
 			$toggle = $('#header').find('.menutoggle');
-- 
GitLab