@open-wc/testing-helpers
Advanced tools
Comparing version 0.7.16 to 0.7.17
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.7.17](https://github.com/open-wc/open-wc/compare/@open-wc/testing-helpers@0.7.16...@open-wc/testing-helpers@0.7.17) (2019-02-24) | ||
### Bug Fixes | ||
* **testing-helpers:** add time before triggering focus/blur (only IE) ([f77cfa2](https://github.com/open-wc/open-wc/commit/f77cfa2)) | ||
## [0.7.16](https://github.com/open-wc/open-wc/compare/@open-wc/testing-helpers@0.7.15...@open-wc/testing-helpers@0.7.16) (2019-02-16) | ||
@@ -8,0 +19,0 @@ |
@@ -61,2 +61,6 @@ let defineCECounter = 0; | ||
export async function triggerBlurFor(element) { | ||
if (isIE()) { | ||
await nextFrame(); | ||
await nextFrame(); | ||
} | ||
element.blur(); | ||
@@ -71,2 +75,4 @@ if (isIE()) { | ||
* Resolves after focus. | ||
* Adding an event and immediately trigger it in fails in IE. | ||
* Also before checking the effects of a trigger IE needs some time. | ||
* | ||
@@ -77,2 +83,6 @@ * @param {HTMLElement} element | ||
export async function triggerFocusFor(element) { | ||
if (isIE()) { | ||
await nextFrame(); | ||
await nextFrame(); | ||
} | ||
element.focus(); | ||
@@ -79,0 +89,0 @@ if (isIE()) { |
{ | ||
"name": "@open-wc/testing-helpers", | ||
"version": "0.7.16", | ||
"version": "0.7.17", | ||
"description": "Testing Helpers following open-wc recommendations", | ||
@@ -36,3 +36,3 @@ "author": "open-wc", | ||
}, | ||
"gitHead": "f49a4468ebd9211228607fcfbe7a3a604275d2f2" | ||
"gitHead": "81b91e504e8518add7f89d85a47f2fb6f5c6f1a4" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32729
393