update components
This commit is contained in:
parent
823f69bb92
commit
db0bac5a2b
22 changed files with 113 additions and 91 deletions
|
@ -161,6 +161,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
assert.isTrue(inputContent.classList.contains('label-is-floating'), 'label is floating');
|
||||
});
|
||||
|
||||
test('label does not receive pointer events', function() {
|
||||
var input = fixture('always-float-label');
|
||||
var label = Polymer.dom(input.root).querySelector('label');
|
||||
assert.equal(getComputedStyle(label).pointerEvents, 'none');
|
||||
});
|
||||
|
||||
test('error message is displayed', function() {
|
||||
var input = fixture('error');
|
||||
forceXIfStamp(input);
|
||||
|
|
|
@ -125,6 +125,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
var inputContent = Polymer.dom(container.root).querySelector('.input-content');
|
||||
assert.isTrue(inputContent.classList.contains('label-is-floating'), 'label is floating');
|
||||
});
|
||||
|
||||
test('label does not receive pointer events', function() {
|
||||
var input = fixture('always-float-label');
|
||||
var label = Polymer.dom(input.root).querySelector('label');
|
||||
assert.equal(getComputedStyle(label).pointerEvents, 'none');
|
||||
});
|
||||
});
|
||||
|
||||
suite('focus/blur events', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue