diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-31 16:17:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 16:17:03 +0200 |
commit | b617f3983a8152f2da018ddba6936dd8381a1f20 (patch) | |
tree | 2b008548ecbc1b2b85e213a20192d45ef7544d91 /core/js | |
parent | a56b7e7ff5b3b95410b1afe9efe8636a81ec357f (diff) | |
parent | ad8fadf157b29ead41ca212f46745f0007c558ca (diff) | |
download | nextcloud-server-b617f3983a8152f2da018ddba6936dd8381a1f20.tar.gz nextcloud-server-b617f3983a8152f2da018ddba6936dd8381a1f20.zip |
Merge pull request #33728 from nextcloud/enh/app-menu-vue
Move app menu to vue
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/tests/specs/coreSpec.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 7f5a8b10d89..93d282c5d5e 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -308,48 +308,6 @@ describe('Core base tests', function() { expect(OC.generateUrl('apps/files/download{file}')).toEqual(OC.getRootPath() + '/index.php/apps/files/download%7Bfile%7D'); }); }); - describe('Main menu mobile toggle', function() { - var clock; - var $toggle; - var $navigation; - - beforeEach(function() { - jQuery.fx.off = true; - clock = sinon.useFakeTimers(); - $('#testArea').append('<div id="header">' + - '<a class="menutoggle header-appname-container" href="#">' + - '<h1 class="header-appname"></h1>' + - '<div class="icon-caret"></div>' + - '</a>' + - '</div>' + - '<div id="navigation"></div>'); - $toggle = $('#header').find('.menutoggle'); - $navigation = $('#navigation'); - }); - afterEach(function() { - jQuery.fx.off = false; - clock.restore(); - $(document).off('ajaxError'); - }); - it('Sets up menu toggle', function() { - window.initCore(); - expect($navigation.hasClass('menu')).toEqual(true); - }); - it('Clicking menu toggle toggles navigation in', function() { - window.initCore(); - // fore show more apps icon since otherwise it would be hidden since no icons are available - clock.tick(1 * 1000); - $('#more-apps').show(); - - expect($navigation.is(':visible')).toEqual(false); - $toggle.click(); - clock.tick(1 * 1000); - expect($navigation.is(':visible')).toEqual(true); - $toggle.click(); - clock.tick(1 * 1000); - expect($navigation.is(':visible')).toEqual(false); - }); - }); describe('Util', function() { describe('computerFileSize', function() { it('correctly parses file sizes from a human readable formated string', function() { |