summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/autofocus-keygen.html
blob: da0ffbdaf76dc04db934c9f259a3ec32a55c98be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="resources/common.js"></script>
<script>
window.jsTestIsAsync = true;

waitUntilLoadedAndAutofocused(function() {
    shouldBe('document.activeElement', 'document.querySelector("keygen")');
    shouldBe('document.activeElement.autofocus', 'true');
    finishJSTest();
});
</script>
</head>
<body>
<keygen autofocus>
<pre id="console">
This tests whether the keygen element supports the autofocus attribute.

</pre>
</body>
</html>