From: Kristofer Krause Date: Mon, 20 Mar 2017 21:04:03 +0000 (-0400) Subject: verify aria-hidden value X-Git-Tag: v6.4.0-rc1~88^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9885%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git verify aria-hidden value --- diff --git a/test/javascript/components/tooltip.js b/test/javascript/components/tooltip.js index b755ad758..f529337d9 100644 --- a/test/javascript/components/tooltip.js +++ b/test/javascript/components/tooltip.js @@ -59,6 +59,7 @@ describe('Tooltip', function() { plugin = new Foundation.Tooltip($html, {}); plugin.$element.should.have.attr('aria-describedby', plugin.template.attr('id')); + plugin.template.should.have.attr('aria-hidden', 'true'); plugin.template.should.have.attr('role', 'tooltip'); }); @@ -81,6 +82,7 @@ describe('Tooltip', function() { plugin.show(); plugin.template.should.be.visible; + plugin.template.should.have.attr('aria-hidden', 'false'); }); it('fires show.zf.tooltip event', function(done) { @@ -107,6 +109,7 @@ describe('Tooltip', function() { plugin.hide(); plugin.template.should.be.hidden; + plugin.template.should.have.attr('aria-hidden', 'true'); }); it('fires hide.zf.tooltip event', function(done) { @@ -132,6 +135,7 @@ describe('Tooltip', function() { plugin.toggle(); plugin.template.should.be.visible; + plugin.template.should.have.attr('aria-hidden', 'false'); }); it('hides a visible tooltip', function() { $html = $(template).appendTo('body'); @@ -142,6 +146,7 @@ describe('Tooltip', function() { plugin.toggle(); plugin.template.should.be.hidden; + plugin.template.should.have.attr('aria-hidden', 'true'); }); });