6564c50182f93e8cf16a901949ba77f1c8556953
[framework/web/webkit-efl.git] / LayoutTests / fast / forms / autofocus-keygen.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 <script>
6 window.jsTestIsAsync = true;
7
8 function onLoad() {
9     shouldBe('document.activeElement', 'document.querySelector("keygen")');
10     shouldBe('document.activeElement.autofocus', 'true');
11     finishJSTest();
12 }
13 </script>
14 </head>
15 <body onload="onLoad();">
16 <keygen autofocus>
17 <pre id="console">
18 This tests whether the keygen element supports the autofocus attribute.
19
20 </pre>
21 <script src="../js/resources/js-test-post.js"></script>
22 </body>
23 </html>