]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: add back comments in dropdownMenu tests 11210/head
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 29 Apr 2018 12:14:50 +0000 (14:14 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 29 Apr 2018 12:14:50 +0000 (14:14 +0200)
test/javascript/components/dropdownMenu.js

index e988855200e5d6ee9f56fc1cbfa5674686283593..73315ccdbc391a009b43c08e4a9a1bf1606a9044 100644 (file)
@@ -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()