Skip to content

Commit

Permalink
Removed a11y suite and moved it to autogrow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuffar committed Feb 23, 2017
1 parent 231c89b commit 1dbb719
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions test/paper-textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,39 +194,6 @@
assert(!input.focused, 'input is blurred');
});
});

suite('a11y', function() {

test('has aria-labelledby', function() {
var input = fixture('label');
assert.isTrue(input.inputElement.textarea.hasAttribute('aria-labelledby'))
assert.equal(input.inputElement.textarea.getAttribute('aria-labelledby'), Polymer.dom(input.root).querySelector('label').id, 'aria-labelledby points to the label');
});

test('has aria-describedby for error message', function() {
var input = fixture('required');
forceXIfStamp(input);
assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-error').id, 'aria-describedby points to the error message');
});

test('has aria-describedby for character counter', function() {
var input = fixture('char-counter');
forceXIfStamp(input);
assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-char-counter').id, 'aria-describedby points to the character counter');
});

test('has aria-describedby for character counter and error', function() {
var input = fixture('required-char-counter');
forceXIfStamp(input);
assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-error').id + ' ' + Polymer.dom(input.root).querySelector('paper-input-char-counter').id, 'aria-describedby points to the error message and character counter');
});

});


</script>

</body>
Expand Down

0 comments on commit 1dbb719

Please sign in to comment.