Skip to content

Commit

Permalink
fix a11y tests, #715
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 19, 2018
1 parent 73bf610 commit 1955fc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/accessibility/AccessibilityTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ define( function( require ) {
tagName: 'div',
ariaLabel: TEST_LABEL, // use ARIA label attribute
accessibleVisible: false, // hidden from screen readers (and browser)
descriptionContent: TEST_DESCRIPTION // default to a <p> tag
descriptionContent: TEST_DESCRIPTION, // default to a <p> tag
containerTagName: 'div'
} );
rootNode.addChild( divNode );

Expand Down Expand Up @@ -497,6 +498,7 @@ define( function( require ) {
// give the button a container parent and some empty siblings
a1.labelTagName = 'div';
a1.descriptionTagName = 'p';
a1.containerTagName = 'div';

var buttonElement = a1.accessibleInstances[ 0 ].peer.primarySibling;
var parentElement = buttonElement.parentElement;
Expand Down

0 comments on commit 1955fc9

Please sign in to comment.