mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision 70df598b894bfa4a7122720608a3110cb25ceb42
This commit is contained in:
parent
7f495fdd61
commit
4334a9c855
111 changed files with 3428 additions and 315 deletions
|
@ -0,0 +1,15 @@
|
|||
async_test(t => {
|
||||
const input = document.body.appendChild(document.createElement("input"));
|
||||
input.onfocus = t.step_func(() => {
|
||||
const frame = document.body.appendChild(document.createElement("iframe")),
|
||||
frameW = frame.contentWindow;
|
||||
frameW.onfocus = t.unreached_func();
|
||||
frame.remove();
|
||||
frameW.focus();
|
||||
t.step_timeout(() => {
|
||||
assert_equals(document.activeElement, input);
|
||||
t.done();
|
||||
}, 100);
|
||||
});
|
||||
input.focus();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue