update polymer
This commit is contained in:
parent
d2bb0d6805
commit
d96a2b7946
28 changed files with 109 additions and 118 deletions
|
@ -96,16 +96,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
c1.checked = true;
|
||||
assert.isTrue(c1.validate());
|
||||
});
|
||||
|
||||
test('checkbox label can be updated', function() {
|
||||
Polymer.dom(c1).textContent = 'Batman';
|
||||
c1.updateAriaLabel();
|
||||
assert.isTrue(c1.getAttribute('aria-label') == 'Batman');
|
||||
|
||||
Polymer.dom(c1).textContent = 'Robin';
|
||||
c1.updateAriaLabel();
|
||||
assert.isTrue(c1.getAttribute('aria-label') == 'Robin');
|
||||
});
|
||||
});
|
||||
|
||||
suite('a11y', function() {
|
||||
|
@ -126,10 +116,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.isTrue(!c1.getAttribute('aria-label'));
|
||||
});
|
||||
|
||||
test('checkbox with a label sets an aria label', function() {
|
||||
assert.isTrue(c2.getAttribute('aria-label') == "Batman");
|
||||
});
|
||||
|
||||
test('checkbox respects the user set aria-label', function() {
|
||||
var c = fixture('AriaLabel');
|
||||
assert.isTrue(c.getAttribute('aria-label') == "Batman");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue