From: Nicolas Coden Date: Sun, 29 Apr 2018 12:14:50 +0000 (+0200) Subject: docs: add back comments in dropdownMenu tests X-Git-Tag: v6.6.0~3^2~219^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11210%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: add back comments in dropdownMenu tests --- diff --git a/test/javascript/components/dropdownMenu.js b/test/javascript/components/dropdownMenu.js index e98885520..73315ccdb 100644 --- a/test/javascript/components/dropdownMenu.js +++ b/test/javascript/components/dropdownMenu.js @@ -143,6 +143,7 @@ describe('Dropdown Menu', function () { document.activeElement.should.be.equal($html.find('> li:nth-child(1) > ul > li:nth-child(1) > a')[0]); }); it('moves focus to previous sub element on ARROW_UP', function () { + // Open it first plugin._show($html.find('> li:nth-child(1) > ul')); $html.find('> li:nth-child(1) > ul > li:nth-child(2) > a').focus() @@ -151,6 +152,7 @@ describe('Dropdown Menu', function () { document.activeElement.should.be.equal($html.find('> li:nth-child(1) > ul > li:nth-child(1) > a')[0]); }); it('opens child element of sub menu on ARROW_RIGHT', function() { + // Open it first plugin._show($html.find('> li:nth-child(1) > ul')); $html.find('> li:nth-child(1) > ul > li:nth-child(2) > a').focus()