PolymerElements / gold-cc-input

An input element that only allows credit card numbers
https://webcomponents.org/element/PolymerElements/gold-cc-input
13 stars 23 forks source link

fix broken test #44

Closed notwaldorf closed 8 years ago

notwaldorf commented 8 years ago

Fixes https://github.com/PolymerElements/gold-cc-input/issues/38.

The test is failing because focusing a gold-cc-input needs to focus the inner native <input> element, which actually fires a blur event (see https://github.com/PolymerElements/paper-input/blob/master/test/paper-input.html#L199 for more details). So if we're listening for blur, that's not great.

We don't actually need to use the event listener at all, and just synchronously check the effect.

valdrinkoshi commented 8 years ago

LGTM :+1: