mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 9a5d71b326166e12784bdd9d161772e20f87c1fd
This commit is contained in:
parent
f7630dad87
commit
4ae3d09ff3
86 changed files with 2739 additions and 640 deletions
|
@ -0,0 +1,16 @@
|
|||
async_test(t => {
|
||||
const input = document.body.appendChild(document.createElement("input"));
|
||||
let happened = false;
|
||||
input.onfocus = t.step_func(e => {
|
||||
happened = true;
|
||||
assert_equals(e.type, "focus");
|
||||
assert_true(e.composed);
|
||||
});
|
||||
input.focus();
|
||||
input.onblur = t.step_func_done(e => {
|
||||
assert_true(happened);
|
||||
assert_equals(e.type, "blur");
|
||||
assert_true(e.composed);
|
||||
});
|
||||
input.blur();
|
||||
}, "Focus events are composed");
|
Loading…
Add table
Add a link
Reference in a new issue