Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Jun 25, 2020
1 parent 2608f81 commit 00780a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/web-platform-tests/tests
Submodule tests added at 70490a
Expand Up @@ -26,14 +26,24 @@
input.addEventListener("blur", () => {
handleBlurCallCount += 1;
});
let handleFocusInCallCount = 0;
input.addEventListener("focusin", () => {
handleFocusInCallCount += 1;
});
let handleFocusOutCallCount = 0;
input.addEventListener("focusout", () => {
handleFocusOutCallCount += 1;
});

container.appendChild(input);

input.focus();
document.activeElement.focus();

assert_equals(handleBlurCallCount, 0);
assert_equals(handleFocusOutCallCount, 0);
assert_equals(handleFocusCallCount, 1);
assert_equals(handleFocusInCallCount, 1);
}, "focusing a focused element does not dispatch focus events");
</script>
</body>
Expand Down

0 comments on commit 00780a4

Please sign in to comment.