mock up missing elements in the tests
This commit is contained in:
parent
e7dcc01017
commit
d1db727d1f
|
@ -1197,7 +1197,7 @@ function initCore() {
|
||||||
setupMainMenu();
|
setupMainMenu();
|
||||||
|
|
||||||
// move triangle of apps dropdown to align with app name triangle
|
// 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) {
|
if($('#navigation').length) {
|
||||||
$('#header #owncloud + .menutoggle').one('click', function(){
|
$('#header #owncloud + .menutoggle').one('click', function(){
|
||||||
var caretPosition = $('.header-appname + .icon-caret').offset().left - 2;
|
var caretPosition = $('.header-appname + .icon-caret').offset().left - 2;
|
||||||
|
|
|
@ -418,7 +418,10 @@ describe('Core base tests', function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
clock = sinon.useFakeTimers();
|
clock = sinon.useFakeTimers();
|
||||||
$('#testArea').append('<div id="header">' +
|
$('#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>' +
|
||||||
'<div id="navigation"></div>');
|
'<div id="navigation"></div>');
|
||||||
$toggle = $('#header').find('.menutoggle');
|
$toggle = $('#header').find('.menutoggle');
|
||||||
|
|
Loading…
Reference in New Issue