update components

This commit is contained in:
Luke Pulverenti 2016-08-02 21:32:16 -04:00
parent 823f69bb92
commit db0bac5a2b
22 changed files with 113 additions and 91 deletions

View file

@ -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);

View file

@ -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() {