mock up missing elements in the tests

remotes/origin/versions-cleanup
Jan-Christoph Borchardt 10 years ago
parent e7dcc01017
commit d1db727d1f
  1. 2
      core/js/js.js
  2. 5
      core/js/tests/specs/coreSpec.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;

@ -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');

Loading…
Cancel
Save