mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae
This commit is contained in:
parent
880f3b8b7a
commit
efca990ffe
541 changed files with 8000 additions and 2276 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: file input can be programatically focused before layout</title>
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#focus">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=505355">
|
||||
<link rel="author" title="Mozilla" href="https://mozilla.org/">
|
||||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<input type="file">
|
||||
<script>
|
||||
test(function() {
|
||||
let input = document.querySelector("input");
|
||||
assert_not_equals(document.activeElement, input);
|
||||
input.focus();
|
||||
assert_equals(document.activeElement, input);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue